banner
NEWS LETTER

docker-machine /docker toolbox 换源

Scroll down

使用 docker-machine ssh xxx 进入虚拟机

plaintext
1
docker-machine ssh [machine-name]

编辑boot2docker配置

plaintext
1
sudo vi /var/lib/boot2docker/profile

在–label provider=virtualbox下面加一行

plaintext
1
--registry-mirror=https://xxxxxxxx.mirror.aliyuncs.com

重启docker服务

plaintext
1
sudo /etc/init.d/docker restart
  • 或者
plaintext
1
docker-machine restart [machine-name]
其他文章
请输入关键词进行搜索