How to Develop CI/CD pipelines & Deploy Application as a Docker Container to AWS EC2 ECR



Install docker and docker compose on your ec2 machine

For Ubuntu:

sudo apt-get update
sudo apt-get install
sudo systemctl enable docker
sudo groupadd docker
sudo usermod -aG docker $USER
newgrp docker

Docker Compose:
sudo curl -L$(uname -s)-$(uname -m) -o /usr/local/bin/docker-compose

sudo chmod +x /usr/local/bin/docker-compose

docker-compose version

Configure ecr access on ec2 machine

aws ecr get-login-password --region us-east-2 | docker login --username AWS --password-stdin your-ecr-registry-url

If you have still access problem, attach ecr iam role with your ec2 [ Showed in the Video]

Download Coding Interview Book and Get More Tutorials for Coding and Interview Solution: Click Here

Download System Design Interview Book and Get More Tutorials and Interview Solution: Click Here

Do you need more Guidance or Help? Then Book 1:1 Quick Call with Me: Click Here

Share on Google Plus

About Ashadullah Shawon

I am Ashadullah Shawon. I am a Software Engineer. I studied Computer Science and Engineering (CSE) at RUET. I Like To Share Knowledge. Learn More: Click Here
    Blogger Comment
    Facebook Comment


Post a Comment