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

This blog is created by Stuart Page

I'm a freelance web developer and technology consultant based in Surrey, UK, with over 10 years experience in web development, DevOps, Linux Administration, and IT solutions.

Need support with your infrastructure or web services?

Get in touch