DEV Community

leroykayanda
leroykayanda

Posted on • Edited on

Setting up docker: Amazon Linux & Ubuntu

Amazon Linux

docker

yum update -y
yum install docker -y
docker service start
#auto start on boot
chkconfig docker on
Enter fullscreen mode Exit fullscreen mode

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
Enter fullscreen mode Exit fullscreen mode
echo 'export PATH=$PATH:/usr/local/bin' >> ~/.bashrc
source ~/.bashrc
Enter fullscreen mode Exit fullscreen mode

Ubuntu

docker

apt install docker.io -y
systemctl enable docker
Enter fullscreen mode Exit fullscreen mode

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
Enter fullscreen mode Exit fullscreen mode

Top comments (0)

Postmark Image

Speedy emails, satisfied customers

Are delayed transactional emails costing you user satisfaction? Postmark delivers your emails almost instantly, keeping your customers happy and connected.

Sign up