> For the complete documentation index, see [llms.txt](https://alfredo-reyes-montero.gitbook.io/docker/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://alfredo-reyes-montero.gitbook.io/docker/upload-docker.md).

# Push image to Docker Cloud

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:

<https://cloud.docker.com/>

**Steps**

In a terminal window, set the environment variable **DOCKER\_ID\_USER** as *your username* in Docker Cloud.

1. This allows you to copy and paste the commands directly from this tutorial.

   ```
    $ export DOCKER_ID_USER="username"
   ```

   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.
2. Log in to Docker Cloud using the `docker login` command.

   ```
    $ docker login
   ```

   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.
3. 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.

   ```
    $ docker tag my_image $DOCKER_ID_USER/my_image
   ```
4. Push your image to Docker Hub using `docker push` (making the same replacements as in the previous step).

   ```
    $ docker push $DOCKER_ID_USER/my_image
   ```
5. 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.
