re: Docker - from the beginning, part I VIEW POST

re: Hi Chris, why are we specifying 'from/node' when we've already been explicit in the Dockerfile about which os to build from?

hi Eugene. I'm trying to understand what you mean? where are you seeing this ?


Hi Chris, I was wondering the same thing... the Dockerfile starts with:

FROM node:latest

and the image building command is:

docker build -t chrisnoring/node:latest .

So why you needed to specify node:latest twice?

Yes thank you for taking the time to be more specific, this is exactly what I was referring to. I've tried without the /node:latest and it produces the same result because of the Dockerfile having that specified.

I could be wrong here, but I think you can call it what you want in the docker build command.. so it could be
FROM node:latest
in Dockerfile and
docker build -t chrisnoring/node:dev
It's just a way to give different builds different names.

code of conduct - report abuse