安装环境
#1 系统为centos 7
#2 使用远程工具(随意)我用的putty 进行远程连接,操作。
环境查看
#1 系统内核为3.10以上
[root@localhost ~]# uname -r
3.10.0-957.el7.x86_64
#2 系统信息
[root@localhost ~]# cat /etc/os-release
NAME="CentOS Linux"
VERSION="7 (Core)"
ID="centos"
ID_LIKE="rhel fedora"
VERSION_ID="7"
PRETTY_NAME="CentOS Linux 7 (Core)"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:centos:centos:7"
HOME_URL="https://www.centos.org/"
BUG_REPORT_URL="https://bugs.centos.org/"
CENTOS_MANTISBT_PROJECT="CentOS-7"
CENTOS_MANTISBT_PROJECT_VERSION="7"
REDHAT_SUPPORT_PRODUCT="centos"
REDHAT_SUPPORT_PRODUCT_VERSION="7"
安装
#1 卸载旧版本docker
[root@localhost ~]# yum remove docker \
> docker-cli