Connect with us

Uncategorized

How to install Docker in Amazon Linux 2?

Docker can be installed in Amazon Linux 2 by just running below command.

sudo yum install docker

# Add current user to the docker group
sudo usermod -aG docker $USER

# Restart docker service
sudo systemctl restart docker

Verify Docker is installed

# Terminate the session and login
docker ps

Install Docker Compose – v2.11.2

Reference: Install Docker Compose | Docker Documentation


sudo curl -L "https://github.com/docker/compose/releases/download/v2.11.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose

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

Trending

Copyright © 2021 Rajan Panneer Selvam. Some of the content is derived from publically available information. For some of the resources I have obtained commercial licenses and you cannot use them in your projects. Before reusing any of the site content, please double-check for copyright issues. I am not responsible if you are infringing copyrights.