国内ubuntu安装部署docker
由于现在海外镜像仓库不通,docker的镜像仓库安装也受到了阻碍,为方便大家安装部署docker,写了整理一篇文章
1、添加Docker官方软件源
apt-get update &&
apt-get -y install apt-transport-https ca-certificates curl software-properties-common &&
curl -fsSL https://mirrors.aliyun.com/docker-ce/linux/ubuntu/gpg | sudo apt-key add - &&
add-apt-repository "deb [arch=amd64] https://mirrors.aliyun.com/docker-ce/linux/ubuntu $(lsb_release -cs) stable" &&
apt-get -y update
2、安装docker-ce
apt-get install -y docker-ce
3、启动并开机启动docker
systemctl start docker && systemctl enable docker