When I build an image using docker build
:
docker build .
I get an image with a random name.
How to create a docker image with a custom name?
I already know how to set the name in the Dockerfile
, but I'm not sure how to use it in the build
command.