Docker installed in linux centos7

Description: Docker by way of the timeline from the after version 1.13 as the version number, divided CE Community Edition and Enterprise Edition EE.
Community Edition is freely available to individual developers and small parties, the Enterprise will offer additional fee-based services, such as officially tested certified infrastructure, container, and other plug-ins.
Community Edition and the edge in two ways according to stable releases, quarterly update stable version, such as 17.06,17.09; edge version update each month, such as 17.09,17.10.

***************************************************************

Getting root ordinary users
LS -l / etc / sudoers
the chmod 750 / etc / sudoers
VI / etc / sudoers
modify sudoers content
### to the Allow root RUN Commands Anywhere the any
root ALL = (ALL) ALL
XSH ALL = (ALL) ALL
: wq

**************************************************************

1, Docker require centos kernel higher than 3.10
uname -r # to view the current kernel version 3.10.0-957.el7.x86_64
2, log in as root using Centos yum package to ensure that the latest update to
sudo yum Update
3, uninstall the old version
if present in the system docker info # View docker displays the following information is not bash docker: / usr / bin / docker: no SUCH File or Directory
sudo yum the Remove-the Common docker docker docker docker-SELinux-Engine

4, required installation package, yum-util provide yum-config-manager function, the other two are driven devicemapper dependent
sudo yum install -y yum-utils devicemapper -persistent-data lvm2

5, the source provided yum
sudo yum-config-manager --add- repo https://download.docker.com/linux/centos/docker-ce.repo

6, view all versions of the warehouse all docker and choose a specific version to install
yum list docker-ce --showduplicates | sort -r

7, install Docker
sudo yum install Docker-ce
If you can not install Possibly insufficient permissions, please see above normal user privileges acquisition method. Then install

8, start docker can also choose to join the boot
sudo systemctl Start docker
sudo systemctl enable docker

9, verify that the installation was successful (there are two parts represent client and service started successfully installed docker)
docker Version

You can also use docker info view docker information.

 

Reference Links: https://www.cnblogs.com/yufeng218/p/8370670.html

Guess you like

Origin www.cnblogs.com/chxrs/p/11417560.html