1 进入docker服务器的容器
docker-machine ssh default
2 执行如下命令,将镜像地址替换为https://www.daocloud.io/mirror,这里可以更换你喜欢的其它镜像.

sudo sed -i "s|EXTRA_ARGS='|EXTRA_ARGS='--registry-mirror=https://www.daocloud.io/mirror |g" /var/lib/boot2docker/profile
3 退出服务器容器

exit
4 重启容器

docker-machine restart default

相关文章:

  • 2021-07-30
  • 2021-05-25
  • 2022-12-23
  • 2022-12-23
  • 2021-05-08
  • 2022-02-26
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-11-15
  • 2021-06-28
  • 2021-09-11
  • 2022-02-03
  • 2022-12-23
  • 2021-12-28
相关资源
相似解决方案