Tag with Docker

Hi

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

my-tag.

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

is it:
docker build -t my-tag .

or
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.

@Alistair_KodeKloud

Thanks for your reply !