centos7.4 installation docker

Prerequisites for installation docker

  1) turn off the firewall and selinux system

  2) time synchronization system

  3) The system must be more than centos7 

 

Removing the old version
yum the Remove docker docker docker-Client-Client-Latest-the Common docker docker docker-Latest-Latest-logrotate logrotate docker docker-Engine-

yum install docker source of

yum install -y yum-utils device- mapper-persistent- LVM2 Data
yum-config-Manager---add the repo https://download.docker.com/linux/centos/docker-ce.repo

mounted Docker
yum the install Docker-CE

starts and added startup
systemctl start Docker
systemctl Docker enable

verification whether the installation was successful (there are two parts, client service and installation start indicate docker are successful)
docker Version
docker info

============================ ==========
yum install some of the default directory docker

docker default data storage directory / var / lib / docker /
default address Registry warehouse: https://index.docker.io/v1/
The default mirrored drive Storage Driver: overlay2

Guess you like

Origin www.cnblogs.com/pyng/p/12597611.html