在Ubuntu中安装Docker --使用阿里云镜像

在Ubuntu中安装Docker --使用阿里云镜像

step 1: 安装必要的一些系统工具
sudo apt-get update
sudo apt-get -y install apt-transport-https ca-certificates curl software-properties-common


step 2: 安装GPG证书
curl -fsSL http://mirrors.aliyun.com/docker-ce/linux/ubuntu/gpg | sudo apt-key add -


Step 3: 写入软件源信息
sudo add-apt-repository "deb [arch=amd64] http://mirrors.aliyun.com/docker-ce/linux/ubuntu $(lsb_release -cs) stable"


Step 4: 更新并安装 Docker-CE
sudo apt-get -y update
sudo apt-get -y install docker-ce

以上安装成功之后,就可以拉取各种镜像和运行容器了,如FastDFS, scrapinghub/splash等。

来源:微信技术群分享

--------------- END ---------------

猜你喜欢

转载自blog.csdn.net/Refrain__WG/article/details/81453959