Last active
June 28, 2020 09:45
-
-
Save AhianZhang/099d3c04f59f5fdfdd24534c649cf7cd to your computer and use it in GitHub Desktop.
Windows Docker ToolBox使用阿里云加速
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
对于已创建的Docker Machine实例,更换镜像源的方法如下 | |
在windows命令行执行docker-machine ssh [machine-name]进入VM bash | |
sudo vi /var/lib/boot2docker/profile | |
在--label provider=virtualbox的下一行添加--registry-mirror https://xxxxxxxx.mirror.aliyuncs.com | |
重启docker服务: | |
sudo /etc/init.d/docker restart | |
或者重启VM:exit退出VM bash,在windows命令行中执行docker-machine restart | |
## 如果是新建Docker Machine实例,参考阿里云的操作文档https://cr.console.aliyun.com/#/accelerator |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks!