Amazon Linux
docker
yum update -y
yum install docker -y
docker service start
#auto start on boot
chkconfig docker on
docker compose
sudo ldconfig
yum install zlib -y
curl -L "https://github.com/docker/compose/releases/latest/download/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
chmod +x /usr/local/bin/docker-compose
echo 'export PATH=$PATH:/usr/local/bin' >> ~/.bashrc
source ~/.bashrc
Ubuntu
docker
apt install docker.io -y
systemctl enable docker
docker-compose
curl -L "https://github.com/docker/compose/releases/latest/download/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
chmod +x /usr/local/bin/docker-compose
Top comments (0)