I have been digging the documentation, but I did not find an instruction to define the tag name of an image in a Dockerfile
. There is one available for the command line though.
Say I create an image FROM
another image, I don't want it to bear the same name. How should I proceed?
docker build -t shykes/myapp:1.0.2 -t shykes/myapp:latest .
resolve you issue?FROM
on the command line, and theRUN
too while at it, thus get rid of the Dockerfile.