Skip to content

Latest commit

 

History

History
43 lines (37 loc) · 1.63 KB

File metadata and controls

43 lines (37 loc) · 1.63 KB

Installation of Docker on Amazon Linux

It is a standard method of installing Docker on Amazon Linux EC2

  1. Update packages
sudo yum update -y
  1. Install Docker

On Amazon Linux

sudo yum install docker -y

On Amazon Linux 2

sudo amazon-linux-extras install docker
  1. Start the Docker service
sudo service docker start

or

sudo systemctl start docker
  1. Enable docker server start on system startup.
sudo systemctl enable docker
  1. Verify that docker is installed correctly by running the hello-world image.
sudo docker run hello-world

NOTE:

Install On Other Platforms