1 Docker installation
1. Check the operating system version and the number of bits
-r uname
2. delete it
yum the Remove Docker Docker
3. install the necessary system tools
-Y-utils yum the install yum-Device-Mapper Data-persistent LVM2
4. Add software source information, add or download source yum
rpm installation wget https://download.docker.com/linux/centos/7/x86_64/stable/Packages/docker-ce-17. 09.0.ce-1.el7.centos.x86_64.rpm yum localinstall docker-ce- 1.el7.centos.x86_64.rpm-17.09.0.ce
yum-config-Manager---add http://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo the repo
. 5. yum update cache
makecache the FAST yum
6. Installation Docker-ce moby is inherited from the former docker project is community-maintained open source project, anyone can create their own on the basis of moby container products company docker docker-ce is maintained open source project, is a project based moby free of container products company docker docker-ee is maintained by closed-source products, the company's commercial products are docker
Docker-ce -y install yum
7. Start Docker background service
Start Docker systemctl
8. The pull hello-world image
docker pull hello-world docker images
9. After the test, enter the following command, such as the emergence of "Hello from Docker!" then the successful operation
RUN-Hello World docker
docker -a PS
10. The docker view display version information, the number of images, the number of containers
info Docker
2 completely remove Docker
1. Delete Yum
yum List Installed | grep Docker
2. File Delete
yum remove docker \ docker-client \ docker-client-latest \ docker-common \ docker-latest \ docker-latest-logrotate \ docker-logrotate \ docker-selinux \ docker-engine-selinux \ docker-engine rm -rf /etc/systemd/system/docker.service.d rm -rf /var/lib/docker rm -rf /var/run/docker