How to create docker image from EC2

0 votes
Hi,

We are running two applications on AWS Windows EC2 Server. Due to heavy usage with one application, we have planned to move AWS ECS Service. But if we use AWS ECS, then we need docker images in ECR. How can we create docker image from AWS EC2 windows server? Then how can i push to docker image to docker repo? Is possible to create docker image from AWS EC2 Windows Server?
Dec 30, 2020 in Docker by Lakshminarayanan
• 1,370 points
2,037 views

1 answer to this question.

0 votes

Hi@Lakshminarayanan,

As you said you have a Windows instance, then you need to install Docker Desktop for the Windows system. After that launch one container and deploy your application. From that container, you can build one image and push it to your docker hub account.

answered Dec 30, 2020 by MD
• 95,440 points
Ok dear, I will start and update here. Many thanks for your reply. Can u tell me how to launch windows container. Basically i need windows 2016 server container. Can u tell me the steps to launch container and how to access it from myself??

Hi,

According to your requirement, you don't need to create an image.  Windows 2016 container is already available in ECR. You can create a cluster from there and deploy your application. To get more information about the commands, you can go through the below link.

https://medium.com/boltops/gentle-introduction-to-how-aws-ecs-works-with-example-tutorial-cea3d27ce63d

Related Questions In Docker

0 votes
1 answer

How to get docker-compose to always re-create containers from fresh images?

The containers are getting recreated to preserve ...READ MORE

answered Jul 27, 2018 in Docker by Kalgi
• 52,360 points
4,378 views
0 votes
1 answer
0 votes
1 answer

how do I create an image from a tar archive in docker?

You can use docker load command inorder to get ...READ MORE

answered Jul 2, 2019 in Docker by Sirajul
• 59,230 points
7,852 views
0 votes
1 answer
0 votes
2 answers

Error: RabbitMQ with Docker for Windows server

Connecting to other containers Step 1: Create a network. ...READ MORE

answered Aug 29, 2020 in Docker by Pistle
• 1,000 points
1,321 views
0 votes
1 answer

How do I run kubernetes on AWS

There are two main ways to use ...READ MORE

answered Oct 26, 2018 in Kubernetes by Kalgi
• 52,360 points
557 views
0 votes
1 answer
0 votes
1 answer

Error while installing puppet on ubuntu

Seems like you've done something wrong with ...READ MORE

answered Dec 19, 2018 in Jenkins by Alan
416 views
0 votes
1 answer

How to create our own docker image?

Hi@akhtar, There are two ways to create docker ...READ MORE

answered Mar 11, 2020 in Docker by MD
• 95,440 points
740 views
0 votes
1 answer

How to create customize jenkins image in docker?

Hi@akhtar, You can pull Jenkins image from docker ...READ MORE

answered May 18, 2020 in Docker by MD
• 95,440 points
1,187 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP