Push image to Docker Cloud
Last updated
Was this helpful?
Last updated
Was this helpful?
Docker Cloud uses Docker Hub as its native registry for storing both public and private repositories. Once you push your images to Docker Hub, they are available in Docker Cloud.
Prerequisites
Create your account at:
Steps
In a terminal window, set the environment variable DOCKER_ID_USER as your username in Docker Cloud.
This allows you to copy and paste the commands directly from this tutorial.
If you don’t want to set this environment variable, change the examples in this tutorial to replace DOCKER_ID_USER
with your Docker Cloud username.
Log in to Docker Cloud using the docker login
command.
This logs you in using your Docker ID, which is shared between both Docker Hub and Docker Cloud.
If you have never logged in to Docker Hub or Docker Cloud and do not have a Docker ID, running this command prompts you to create a Docker ID.
Tag your image using docker tag
.
In the example below replace my_image
with your image’s name, and DOCKER_ID_USER
with your Docker Cloud username if needed.
Push your image to Docker Hub using docker push
(making the same replacements as in the previous step).
Check that the image you just pushed appears in Docker Cloud.
Go to Docker Cloud and navigate to the Repositories tab and confirm that your image appears in this list.