标签:bsp centos date har ota manager 启动 get doc
CentOS 7
#卸载旧版本docker相关软件
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 install -y yum-utils device-mapper-persistent-data lvm2
#配置docker的yum源
yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
#安装docker-ce
yum install docker-ce -y
#启动并查看docker信息
systemctl start docker docker info
#卸载docker
yum remove docker-ce rm -fr /var/lib/docker
Ubuntun 14.06/16.04/18.04
#卸载docker旧版本相关软件
apt-get remove docker docker-engine docker.io
#安装证书
apt-get install apt-transport-https ca-certificates curl software-properties-common
#添加docker源的key
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
#升级apt-get包
apt-get update
#安装docker-ce
apt-get install docker-ce
#卸载docker-ce
apt-get purge docker-ce rm -fr /var/lib/docker
标签:bsp centos date har ota manager 启动 get doc
原文地址:https://www.cnblogs.com/cangyuefeng/p/10213851.html