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:

and

To obtain our docker id:

This is our dasboard

The repo is empty:

Also the docker hub account

dashboard

What is the difference between docker hub and docker cloud?

We have our docker image app: (https://docs.docker.com/engine/getstarted/step_four/)

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:

(https://docs.docker.com/engine/getstarted/step_six/)

$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: https://aws.amazon.com/es/ecr/

and this service belong to the free tier

https://aws.amazon.com/es/free/

One clap, two clap, three clap, forty?

By clapping more or less, you can signal to us which stories really stand out.