关于docker配置问题

在windows10家庭版,使用DockerToolbox-18.03.0-ce 配置docker,已正常启动。
在执行docker push 的时候会报错:

The push refers to repository [10.136.192.5:5000/tes/test]
Get https://10.136.192.5:5000/v1/: http: server gave HTTP response to HTTPS client

根据百度得知,
docker-machine ssh [machine-name]进入VM bash
sudo vi /var/lib/boot2docker/profile
在–label provider=virtualbox的下一行添加
--registry-mirror https://xxxxxxxx.mirror.aliyu...
修改完成后为:

clipboard.png

重启docker
docker-machine restart default

然后报错:

$ docker-machine restart default
Restarting "default"...
(default) Check network to re-create if needed...
(default) Windows might ask for the permission to configure a dhcp server. Sometimes, such confirmation window is minimized in the taskbar.
(default) Waiting for an IP...
Waiting for SSH to be available...
Detecting the provisioner...
Unable to verify the Docker daemon is listening: Maximum number of retries (10) exceeded

求大神!!!!!!!!!!!!!!!

阅读 3.7k
1 个回答

试试:

docker-machine rm -f default
docker-machine create -d virtualbox default

命令只能在windows的docker启动小黑窗执行,不能再xshell的代理窗口里运行

撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题