注册表 & 加速
参考:https://github.com/abiosoft/colima/issues/834
比起加速,代理更快
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
| # 设置 colima start --edit docker: insecure-registries: - harbor.jakehu.me:31104 registry-mirrors: - https://docker.registry.huwenxi.com
# 查看配置 colima ssh -- cat /etc/docker/daemon.json; echo { "exec-opts": [ "native.cgroupdriver=cgroupfs" ], "features": { "buildkit": true }, "host-gateway-ip": "192.168.5.2", "insecure-registries": [ "harbor.jakehu.me:31104" ], "registry-mirrors": [ "https://docker.registry.huwenxi.com" ] }
|
Docker 代理
参考:https://github.com/abiosoft/colima/issues/294
1 2 3 4 5 6 7 8 9
| # 设置 colima start --edit env: HTTP_PROXY: http://10.168.64.147:1080 HTTPS_PROXY: http://10.168.64.147:1080 NO_PROXY: localhost,127.0.0.1,harbor.xxx.com
# 校验 docker info | grep "Proxy"
|