Running your Own Docker Image on AWS

First, we need a docker ID to install our docker image. We are going to write about the steps:

This is based on:


To obtain our docker id:

This is our dasboard

The repo is empty:

Also the docker hub account


What is the difference between docker hub and docker cloud?

We have our docker image app: (

You have now built an image called docker-whale:

$ sudo docker build -t docker-whale .

we have the image, we are going to publish it:

Publishing the Docker image (push)

We create the repo where we are going to upload and publish our image:

Ok! this is our public repo:

Now, we are going to push the image:


$sudo docker image
$sudo docker tag 44d5c96f8e33 pabloezequiel/docker-whale:latest
the tagged image is present

Docker login in the docker hub:

$ sudo docker login

Login Succeeded
The image is pushed

In the repo is the new image:

(We should note that a new repo was created, different to our “docker-pe-whale” that I am going to delete because it is empty)

Getting the Docker Image (pull)

To get the docker image, we should first to delete the local images:

$sudo docker images

$ sudo docker rmi -f 44d5c96f8e33

and now, we can run the docker image that we have just upload:

$ sudo docker run pabloezequiel/docker-whale

Ok, we can finish the post at this point: we have upload and download a image. (push and pull)

What is next?

You could use Amazon EC2 Container Registry to put your docker images:

and this service belong to the free tier