-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDocker Installation on amz linux
41 lines (28 loc) · 1.08 KB
/
Docker Installation on amz linux
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
Installing Docker on Amazon Linux server
1.Update packages
yum update -y
2.Install docker
yum install docker -y
useradd dockeradmin
passwd dockeradmin
usermod -aG docker dockeradmin
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