Publishing images to Docker Hub

You can upload your application images to the central cloud-based Docker repository called Docker Hub, and then use them in Microsoft Azure, AWS, or any other Docker-supported environments.

Note that there are also other Docker registries you could use, such as Azure Container Registry and others. Since Docker provides its own registry via Docker Hub, it is, however, advised to use that.

For more information on Docker Hub, check out https://docs.docker.com/docker-hub.

The following example showcases how to publish and upload the sample TicTacToe application to Docker Hub:

  1. Right-click on the TicTacToe project and select Publish in the context menu; since you have already created a publish profile in the preceding examples, you have to add a new one. Click on Create new profile, as follows:
  1. Click on the Container Registry button, select Docker Hub, and click on the Publish button, as shown in the following screenshot:

  1. Enter your Docker Hub User Name and Password, and click on Save, as shown in the following screenshot:

  1. Your container image will be published to Docker Hub; when it has been finished, go to Docker Hub and verify that the image has been uploaded, as follows:

Well done for getting this far, and on the application development side of things, we have pretty much looked at just about every angle of how to come up with a world-class application. You should pat yourself on the back for finally having your application in a container hub. 

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.23.114.100