November 2019
Intermediate to advanced
362 pages
7h 52m
English
Now we have the container running locally. We have created an image in the repository called mycustomimage with the tag v1.0.0, as you can see if you run the following:
docker images
The following screenshot shows the output of the preceding command:

To publish the image to Docker Hub, we can create another repository with our Docker ID or we can simply tag the current image with the new name, as shown in the following code:
docker build --tag Docker-ID/mycustomimage:v1.0.0 .
We can also use the following: