Installing docker on Linux.

1.1K    Asked by CaroleThom in Devops , Asked on Nov 20, 2019
Answered by Carole Thom

 Let’s install docker on Cent OS 7.

log in to the base system i.e. cantos 7 and execute yum update -y to make sure all the existing packages are updated to latest release.

Adding yum repo,

vim /etc/yum.repos.d/docker_install.repo

Add below contents into the file -

[dockerrepo]

 name=Docker Repository

 baseurl=https://yum.dockerproject.org/repo/main/centos/7/

 enabled=1

 gpgcheck=1

 gpgkey=https://yum.dockerproject.org/gpg

 EOF

Installing docker

yum install docker-engine -y

Start docker

service docker start



Your Answer

Interviews

Parent Categories