Tag with Docker


I come across sentences like:
Build the Docker image and tag it with


supposing the image that is used for the docker file is ubuntu

is it:
docker build -t my-tag .

docker build -t ubuntu:my-tag .

Hi @stephane.hordoir

It is the first option you have given. How you tag an image you build is unrelated to the source you built it from.


Thanks for your reply !