- Update the packages
sudo yum update -y- Install the most recent Docker CE edition
sudo yum install docker -y- Start the docker service
sudo service docker start - Add the ec2-user to the docker group so you can execute Docker commands without using sudo.
sudo usermod -a -G docker ec2-user