Home Pushing a locally built Docker image to your Docker Hub repository
Post
Cancel

Pushing a locally built Docker image to your Docker Hub repository

To use a locally built Docker image in a Kubernetes deployment, it needs to reside in a repository. This can be a local GitLab instance or on the Docker hub (https://hub.docker.com/).

Login

1
sudo docker login

Supply your login credentials.

Push

Suppose you have a local image called ‘special-image’, to push it to the repo you would use the following command.

1
sudo docker image push special-image

Now you can use ‘special-image’ as a Kubernetes image.

This post is licensed under CC BY 4.0 by the author.