Ayrton
Posted on June 13, 2021
Hi
With the Amazon Linux 2 Centos based instance, here is the best initialisation to start with Docker !
sudo yum update -y && sudo yum install git -y
sudo amazon-linux-extras install docker -y
sudo service docker start
sudo curl -L https://github.com/docker/compose/releases/latest/download/docker-compose-$(uname -s)-$(uname -m) -o /usr/local/bin/docker-compose
sudo ln -s /usr/local/bin/docker-compose /usr/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose;
sudo docker network create web
try
sudo docker run hello-world
In order:
- Update centos repo
- Install Git
- Install Docker
- Start docker
- Download Docker-compose
- relative link for docker-compose
- Docker-compose executable
- Create base network
Love ❤️
💖 💪 🙅 🚩
Ayrton
Posted on June 13, 2021
Join Our Newsletter. No Spam, Only the good stuff.
Sign up to receive the latest update from our blog.