【Docker】关于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...
修改完成后为:

【Docker】关于docker配置问题

重启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

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

回答

试试:

docker-machine rm -f default

docker-machine create -d virtualbox default

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

以上是 【Docker】关于docker配置问题 的全部内容, 来源链接: utcz.com/a/79755.html

回到顶部