docker安装 # CentOS 7 中 Docker 的安装 ``` 卸载旧版本(如果安装过旧版本的话) sudo yum remove docker \               docker-client \               docker-client-latest \               docker-common \               docker-latest \               docker-latest-logrotate \               docker-logrotate \               docker-selinux \               docker-engine-selinux \               docker-engine ``` ``` #更新 yum yum -y update ​ #安装 docker yum -y install docker ​ #进入 docker vi /etc/sysconfig/docker ​ # 修改 --selinux-enabled=false ​ # /etc/sysconfig/docker ​ # Modify these options if you want to change the way the docker daemon runs OPTIONS='--selinux-enabled=false --log-driver=journald --signature-verification=false' if [ -z "${DOCKER_CERT_PATH}" ]; then    DOCKER_CERT_PATH=/etc/docker fi ​ # :wq 退出保存 # 重新启动 docker systemctl restart docker ​ docker version ​ Client: Version:         1.13.1 API version:     1.26 Package version: docker-1.13.1-63.git94f4240.el7.centos.x86_64 Go version:     go1.9.4 Git commit:     94f4240/1.13.1 Built:           Fri May 18 15:44:33 2018 OS/Arch:         linux/amd64 ​ Server: Version:         1.13.1 API version:     1.26 (minimum version 1.12) Package version: docker-1.13.1-63.git94f4240.el7.centos.x86_64 Go version:     go1.9.4 Git commit:     94f4240/1.13.1 Built:           Fri May 18 15:44:33 2018 OS/Arch:         linux/amd64 Experimental:    false ```