Closed denglinfu closed 1 day ago
环境变量设置HTTP_PROXY和HTTPS_PROXY就可以(我用的mihomo),刚刚测试了(UGOS PRO compose模式),如果只设置HTTP_PROXY就不行。
环境变量设置HTTP_PROXY和HTTPS_PROXY就可以(我用的mihomo),刚刚测试了(UGOS PRO compose模式),如果只设置HTTP_PROXY就不行。
请问环境变量设置HTTP_PROXY和HTTPS_PROXY值需要怎么填写?
环境变量设置HTTP_PROXY和HTTPS_PROXY就可以(我用的mihomo),刚刚测试了(UGOS PRO compose模式),如果只设置HTTP_PROXY就不行。
请问环境变量设置HTTP_PROXY和HTTPS_PROXY值需要怎么填写?
我是用的docker版的mihomo(host模式) 所以填下面的 host 模式两项都输入 http://127.0.0.1:端口 bridge模式两项都输入 http:/nas 的ip:端口
我的代理端口是7890 用的这个配置:
services:
dockercopilot:
container_name: dockercopilot
restart: always
network_mode: host
ports:
- 12712:12712
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- ./data:/data
environment:
- TZ=Asia/Shanghai
- DelOldContainer=true
- DOCKER_HOST=unix:///var/run/docker.sock
- secretKey=你的登录密码
- HTTP_PROXY=http://127.0.0.1:7890
- HTTPS_PROXY=http://127.0.0.1:7890
image: 0nlylty/dockercopilot:UGREEN
privileged: true
环境变量设置HTTP_PROXY和HTTPS_PROXY就可以(我用的mihomo),刚刚测试了(UGOS PRO compose模式),如果只设置HTTP_PROXY就不行。
请问环境变量设置HTTP_PROXY和HTTPS_PROXY值需要怎么填写?
我是用的docker版的mihomo(host模式) 所以填下面的 host 模式两项都输入 http://127.0.0.1:端口 bridge模式两项都输入 http:/nas 的ip:端口
我的代理端口是7890 用的这个配置:
services: dockercopilot: container_name: dockercopilot restart: always network_mode: host ports: - 12712:12712 volumes: - /var/run/docker.sock:/var/run/docker.sock - ./data:/data environment: - TZ=Asia/Shanghai - DelOldContainer=true - DOCKER_HOST=unix:///var/run/docker.sock - secretKey=你的登录密码 - HTTP_PROXY=http://127.0.0.1:7890 - HTTPS_PROXY=http://127.0.0.1:7890 image: 0nlylty/dockercopilot:UGREEN privileged: true
可行,感谢
环境变量设置HTTP_PROXY和HTTPS_PROXY就可以(我用的mihomo),刚刚测试了(UGOS PRO compose模式),如果只设置HTTP_PROXY就不行。
请问环境变量设置HTTP_PROXY和HTTPS_PROXY值需要怎么填写?
我是用的docker版的mihomo(host模式) 所以填下面的 host 模式两项都输入 http://127.0.0.1:端口 bridge模式两项都输入 http:/nas 的ip:端口
我的代理端口是7890 用的这个配置:
services: dockercopilot: container_name: dockercopilot restart: always network_mode: host ports: - 12712:12712 volumes: - /var/run/docker.sock:/var/run/docker.sock - ./data:/data environment: - TZ=Asia/Shanghai - DelOldContainer=true - DOCKER_HOST=unix:///var/run/docker.sock - secretKey=你的登录密码 - HTTP_PROXY=http://127.0.0.1:7890 - HTTPS_PROXY=http://127.0.0.1:7890 image: 0nlylty/dockercopilot:UGREEN privileged: true
已经设置好了,可用,非常感谢
2.0.7版本已修复
版本是最新的 2.04 已经设置了代理,在 portainer 中可以正常拉取镜像 日志有对应错误提示
补充一下,虽然没有提示更新,但是如果点击更新也会将制定的 docker 更新到最新版