We have learned how to create Dockers, and how to run them, but these Dockers that we have built are stored in our system. Now we need to publish them so that they are accessible anywhere. During this section, we will learn how to publish our Docker images, and how we can finally integrate Maven with Docker to easily do the same steps for our microservices.
Publishing Dockers
Understanding repositories
In our previous examples, when we built a Docker image, we published it into our local system repository so we can execute Docker run. Docker will be able to find them; this local repository exists only on our system, and most likely we need to have this access to wherever we like to run our Docker.
For example, we may create...