O'Reilly logo

Go Web Development Cookbook by Arpit Aggarwal

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

How to do it…

  1. Create your account on the Docker Hub (https://hub.docker.com/).
  1. Login into the Docker Hub from the command line by executing the docker login command, as follows:
$ docker login --username arpitaggarwal --password XXXXX Login Succeeded
  1. Tag the golang-image:

$ docker tag golang-image arpitaggarwal/golang-image
  1. Verify whether the image has been tagged successfully by executing the docker images command:

$ docker images

Executing the preceding command will list all the Docker images, as shown in the following screenshot:

  1. Push the tagged image to the Docker Hub by executing the docker push command, as follows: 

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required