Programster's Blog

Tutorials focusing on Linux, programming, and open-source

Amazon Linux - Install Docker

After a few recent issues with using docker on Amazon Linux, I am no longer recommending it. I believe these are related to the devicemapper storage backend and perhaps more steps now need to be performed. Maybe it will be fine if you set it up with overlayFS.

sudo yum update -y
sudo yum install docker-io -y

Optional - Add ec2-user to Docker Group

sudo usermod -a -G docker ec2-user

Start Docker On Boot

Run the following command to ensure docker starts on boot.

sudo systemctl enable docker
Last updated: 31st January 2023
First published: 16th August 2018