docker加速

  1. Linux
    curl -sSL https://get.daocloud.io/daotools/set_mirror.sh | sh -s http://f1361db2.m.daocloud.io
    该脚本可以将 --registry-mirror加入到你的 Docker 配置文件 /etc/docker/daemon.json中。

  2. macOS
    右键点击桌面顶栏的 docker 图标,选择 Preferences ,在 Daemon 标签(Docker 17.03 之前版本为 Advanced 标签)下的 Registry mirrors 列表中加入下面的镜像地址:
    http://f1361db2.m.daocloud.io
    点击 Apply & Restart 按钮使设置生效。

  3. Windows
    在桌面右下角状态栏中右键 docker 图标,修改在 Docker Daemon 标签页中的 json ,把下面的地址:
    http://f1361db2.m.daocloud.io
    加到registry-mirrors的数组里。点击 Apply 。

图示:
windows平台加速以及停止容器运行
windows平台加速以及停止容器运行

在Windows上,需要手动停止容器

在Windows系统上,CTRL+C不会停止容器。因此,首先键入CTRL+C以回到命令模式(或打开另一个shell),然后键入 docker container ls以列出正在运行的容器,然后 docker container stop <Container NAME or ID>停止容器。否则,当您尝试在下一步中重新运行容器时,会从守护程序收到错误响应。

相关文章:

  • 2021-09-11
  • 2021-05-20
  • 2021-11-21
  • 2021-07-28
  • 2021-10-09
  • 2021-08-17
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-07-11
  • 2022-12-23
  • 2022-12-23
  • 2021-07-21
  • 2021-12-15
  • 2022-12-23
  • 2022-01-07
相关资源
相似解决方案