###更改镜像仓库地址 - 首先需要注册阿里云账号,然后在cr.console.aliyun.com/页面的左侧可以看到【镜… - 在powershell或cmd中通过 【docker-machine ssh default】命令登录虚拟机(或使用设置好的XShell连接),执行如下命令:
sudo sed -i "s|EXTRA_ARGS='|EXTRA_ARGS='--registry-mirror=加速地址 |g" /var/lib/boot2docker/profile
- 然后重启default docker-machine restart default
###设置InsecureRegistry
1.修改文件
C:\Users\Administrator\.docker\machine\machines\default\config.json
HostOptions->EngineOptions->"InsecureRegistry": [
"192.168.0.177:8082",
"172.16.1.4:8082"
],
2.docker-machine restart default
3.重启windows
###x509 certificate has expired or is not yet valid
- If it is a system time problem, just update it:
ntpdate cn.pool.ntp.org
- Just regenerate-certs
docker-machine regenerate-certs --client-certs
build with proxy
docker build -t vnc:chrome_95.1 --network host --build-arg VERSION=95.0.4638.69-1 --build-arg http_proxy=http://192.168.10.20:10880 --build-arg https_proxy=http://192.168.10.20:10880 .