系统版本
[cloud@kwang9-web ~]$ uname -r
3.10.0-1160.53.1.el7.x86_64
[cloud@kwang9-web /]$ 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"
安装
卸载旧版本
较旧的 Docker 版本称为 docker 或 docker-engine 。
卸载旧版本命令
[cloud@kwang9-web ~]$ sudo yum remove docker \
> docker-client \
> docker-client-latest \
> docker-common