Pushing the image to Docker Hub

The Docker Hub is a public repository to store Docker images. It is free, and we will use it for this book. Now, we will push our image to the Docker Hub registry.

The command for that is pretty simple. Type:

docker push springfivebyexample/cms:latest
I have used the springfivebyexample user that I have created. You can test the docker push command creating by your own user on Docker Hub and changing the user on the docker push command. You can create your Docker ID at Docker Hub (https://cloud.docker.com/).

Then, the image will be sent to the registry. That is it.

We can find the image at Docker Hub (https://store.docker.com/community/images/springfivebyexample/cms). If you have used your own user, the link ...

Get Spring 5.0 By Example 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.