国内拉去docker镜像慢得可怜,为了解决这个问题,可为docker配置加速器。

1.修改daemon配置文件

sudo mkdir -p /etc/docker
vim /etc/docker/daemon.json

  按“i“输入内容:

{
        "registry-mirrors":["http://d168789d.m.daocloud.io"]
}

  按esc,输入“:wq” 后回车.

sudo systemctl daemon-reload
sudo systemctl restart docker

2.使用脚本

curl -sSL https://get.daocloud.io/daotools/set_mirror.sh | sh -s http://d168789d.m.daocloud.io

 

相关文章:

  • 2021-10-26
  • 2021-09-04
  • 2021-12-05
  • 2021-06-26
  • 2022-01-16
  • 2022-12-23
  • 2021-07-21
  • 2021-11-30
猜你喜欢
  • 2021-08-03
  • 2021-06-02
  • 2021-07-06
  • 2021-08-14
  • 2022-12-23
  • 2021-05-27
相关资源
相似解决方案