美文网首页
解决ubuntu安装docker很慢的问题

解决ubuntu安装docker很慢的问题

作者: 勿忘初衷_d102 | 来源:发表于2020-02-07 20:20 被阅读0次

官方的源很慢,使用阿里的:

1. unload 原的docker

sudo apt-get remove docker docker-engine docker-ce docker.io

sudo apt-get update

2. apt-get 可以使用https库

sudo apt-get install -y apt-transport-https ca-certificates curl software-properties-common

3. 添加docker的使用的公钥

curl -fsSL https://mirrors.aliyun.com/docker-ce/linux/ubuntu/gpg | sudo apt-key add -

4. 添加docker的远程库

add-apt-repository "deb [arch=amd64] https://mirrors.aliyun.com/docker-ce/linux/ubuntu $(lsb_release -cs) stable"

apt-get update

5. 安装docker-ce

sudo apt-get install -y docker-ce

6. 启动docker

systemctl status docker

7. 运行hello-world

···

sudo docker run hello-world

相关文章

网友评论

      本文标题:解决ubuntu安装docker很慢的问题

      本文链接:https://www.haomeiwen.com/subject/zduvxhtx.html