Skip to content

Commit

Permalink
Docker Installation on Amazon Linux
Browse files Browse the repository at this point in the history
  • Loading branch information
usman6745 authored Nov 16, 2018
1 parent c2d31ba commit 19f2935
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions Docker Installation on amz linux
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
Installing Docker on Amazon Linux server
1.Update packages

yum update -y
2.Install docker

yum install docker -y
Docker Installation on CentOS server
Referance URL : https://docs.docker.com/install/linux/docker-ce/centos/#install-using-the-repository
PREREQUISITES
Please follow below steps to install docker CE on CentoOS server instance. For RedHat only Docker EE available

1.Install required packages.

sudo yum install -y yum-utils \
device-mapper-persistent-data \
lvm2

2.Use the following command to set up the stable repository.

sudo yum-config-manager \
--add-repo \
https://download.docker.com/linux/centos/docker-ce.repo
INSTALLING DOCKER CE
1.Install the latest version of Docker CE.

sudo yum install docker-ce
If prompted to accept the GPG key, verify that the fingerprint matches 060A 61C5 1B55 8A7F 742B 77AA C52F EB6B 621E 9F35, and if so, accept it.

2.Start Docker.

sudo systemctl start docker
3.Verify that docker is installed correctly by running the hello-world image.

sudo docker run hello-world

0 comments on commit 19f2935

Please sign in to comment.