Repository: https://github.com/shawon100/aws-ec2-docker-python-ci-cd
Install docker and docker compose on your ec2 machine
For Ubuntu:
sudo apt-get update
sudo apt-get install docker.io
sudo systemctl enable docker
sudo groupadd docker
sudo usermod -aG docker $USER
newgrp docker
Docker Compose:
sudo
curl -L
https://github.com/docker/compose/releases/latest/download/docker-compose-$(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]
0 comments:
Post a Comment