DEV Community

Cover image for Deploying Docker container  on AWS EC2 instance
Abhiroop Basak
Abhiroop Basak

Posted on

Deploying Docker container on AWS EC2 instance

The first step involves creating an AWS ec2 instance. The pre requisites for that is an AWS account. In this case, an AWS AMI was selected, but there is a wide range of servers available to select from.

Alt Text

The next step involves entering the server with the help of SSH connection and use the server. Setting up the server to install docker container and pull the docker image from the git repository.

Alt Text

The final step is to build the docker image and run the container. The final output can be check if the container is running and the the public DNS displays the page or not.

Alt Text

Thats all! A docker container set up on the AWS ec2 instance.

Top comments (0)