安装环境
- 基于
X86_64
的CentOS7
系统 - 下载docker-19.03.5.tar.gz压缩包 验证码为:
7vcx
卸载已有的docker
yum remove docker \
docker-client \
docker-client-latest \
docker-common \
docker-latest \
docker-latest-logrotate \
docker-logrotate \
docker-engine
解压docker-19.03.5.tar.gz
压缩包
tar -xzf docker-19.03.5.tar.gz
安装docker
yum localinstall -y docker-install/*.rpm
启动docker
systemctl start docker
设置开机自启docker
systemctl enable docker
查看docker
状态
systemctl status docker
查看docker
版本
docker version