Publishing microservices to the Docker Hub

The Docker Hub is a central repository to store all Docker images. The Docker Hub allows you to create either a public or private repository to store these Docker images. The steps to publish microservices to the Docker Hub are described next.

Let's follow these steps to set up and run a local registry:

  1. Create an account on the Docker Hub at https://hub.docker.com/.
  2. Create a repository (private or public) for the Docker images, as shown in the following screenshot:

As you can see in the preceding screenshot, we have created three repositories named dineshonjava/account, dineshonjava/customer, and ...

Get Mastering Spring Boot 2.0 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.