ludoux / unraid-proxy-editor

GNU General Public License v2.0
42 stars 7 forks source link

功能:能否增加dockerd进程http_proxy和https_proxy环境变量设置 #4

Open gnailam opened 5 months ago

gnailam commented 5 months ago

因为docker pull基于dockerd的网络环境,能否在插件中增加dockerd的代理设置,这个只影响docker pull,对系统和其他容器网络无影响

unraid docker启动脚本位置在/usr/local/etc/rc.d/rc.docker在webui上的docker操作都会调用这个shell脚本

rc.docker文件在533行有启动命令nohup $UNSHARE --propagation slave -- $DOCKER -p $DOCKER_PIDFILE $DOCKER_OPTS >>$DOCKER_LOG 2>&1 &

整个脚本只有这一个nohup,在后面增加env http_proxy https_proxy

最终看起来是这样子的 QQ截图20240612021857

需重启dockerd生效

ludoux commented 5 months ago

最新unraid会官方支持proxy,请静等官方推送即可。本插件将不再维护,也不建议继续使用


From: gnailam @.> Sent: Thursday, June 13, 2024 11:43:55 AM To: ludoux/unraid-proxy-editor @.> Cc: Subscribed @.***> Subject: [ludoux/unraid-proxy-editor] 功能:能否增加dockerd进程http_proxy和https_proxy环境变量设置 (Issue #4)

因为docker pull基于dockerd的网络环境,能否在插件中增加dockerd的代理设置,这个只影响docker pull,对系统和其他容器网络无影响

unraid docker启动脚本位置在/usr/local/etc/rc.d/rc.docker在webui上的docker操作都会调用这个shell脚本

rc.docker文件在533行有启动命令nohup $UNSHARE --propagation slave -- $DOCKER -p $DOCKER_PIDFILE $DOCKER_OPTS >>$DOCKER_LOG 2>&1 &

整个脚本只有这一个nohup,在后面增加env http_proxy https_proxy

最终看起来是这样子的 QQ.20240612021857.png (view on web)https://github.com/ludoux/unraid-proxy-editor/assets/132273883/15d6ae21-ebf8-41ce-983d-8065eb68ba0a

需重启dockerd生效

― Reply to this email directly, view it on GitHubhttps://github.com/ludoux/unraid-proxy-editor/issues/4, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ADGWKTHACSKBRZDEQMDJYUDZHEIPXAVCNFSM6AAAAABJHREEQCVHI2DSMVQWIX3LMV43ASLTON2WKOZSGM2TAMBXGU2TKNA. You are receiving this because you are subscribed to this thread.Message ID: @.***>

StromKuo commented 4 months ago

/usr/local/etc/rc.d/rc.docker

最新unraid会官方支持proxy,请静等官方推送即可。本插件将不再维护,也不建议继续使用 ____ From: gnailam @.> Sent: Thursday, June 13, 2024 11:43:55 AM To: ludoux/unraid-proxy-editor @.> Cc: Subscribed @.> Subject: [ludoux/unraid-proxy-editor] 功能:能否增加dockerd进程http_proxy和https_proxy环境变量设置 (Issue #4) 因为docker pull基于dockerd的网络环境,能否在插件中增加dockerd的代理设置,这个只影响docker pull,对系统和其他容器网络无影响 unraid docker启动脚本位置在/usr/local/etc/rc.d/rc.docker在webui上的docker操作都会调用这个shell脚本 rc.docker文件在533行有启动命令nohup $UNSHARE --propagation slave -- $DOCKER -p $DOCKER_PIDFILE $DOCKER_OPTS >>$DOCKER_LOG 2>&1 & 整个脚本只有这一个nohup,在后面增加env http_proxy https_proxy 最终看起来是这样子的 QQ.20240612021857.png (view on web)https://github.com/ludoux/unraid-proxy-editor/assets/132273883/15d6ae21-ebf8-41ce-983d-8065eb68ba0a 需重启dockerd生效 ― Reply to this email directly, view it on GitHub<#4>, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ADGWKTHACSKBRZDEQMDJYUDZHEIPXAVCNFSM6AAAAABJHREEQCVHI2DSMVQWIX3LMV43ASLTON2WKOZSGM2TAMBXGU2TKNA. You are receiving this because you are subscribed to this thread.Message ID: @.>

请问会官方支持proxy有相关链接吗,搜了一圈论坛和博客没找到相关信息,感谢

ludoux commented 4 months ago

6.13.0-beta2是已经引入了,目前应该是类似内测阶段。假如顺利的话在6.13.0正式版就可以使用了。我这边测试的话可以代理插件更新、docker pull和系统更新


From: Strom @.> Sent: Monday, June 17, 2024 11:08:13 AM To: ludoux/unraid-proxy-editor @.> Cc: Lu Chang @.>; Comment @.> Subject: Re: [ludoux/unraid-proxy-editor] 功能:能否增加dockerd进程http_proxy和https_proxy环境变量设置 (Issue #4)

/usr/local/etc/rc.d/rc.docker

最新unraid会官方支持proxy,请静等官方推送即可。本插件将不再维护,也不建议继续使用 … ____ From: gnailam @.> Sent: Thursday, June 13, 2024 11:43:55 AM To: ludoux/unraid-proxy-editor @.> Cc: Subscribed @.> Subject: [ludoux/unraid-proxy-editor] 功能:能否增加dockerd进程http_proxy和https_proxy环境变量设置 (Issue #4https://github.com/ludoux/unraid-proxy-editor/issues/4) 因为docker pull基于dockerd的网络环境,能否在插件中增加dockerd的代理设置,这个只影响docker pull,对系统和其他容器网络无影响 unraid docker启动脚本位置在/usr/local/etc/rc.d/rc.docker在webui上的docker操作都会调用这个shell脚本 rc.docker文件在533行有启动命令nohup $UNSHARE --propagation slave -- $DOCKER -p $DOCKER_PIDFILE $DOCKER_OPTS >>$DOCKER_LOG 2>&1 & 整个脚本只有这一个nohup,在后面增加env http_proxy https_proxy 最终看起来是这样子的 QQ.20240612021857.png (view on web)https://github.com/ludoux/unraid-proxy-editor/assets/132273883/15d6ae21-ebf8-41ce-983d-8065eb68ba0a 需重启dockerd生效 D Reply to this email directly, view it on GitHub<#4https://github.com/ludoux/unraid-proxy-editor/issues/4>, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ADGWKTHACSKBRZDEQMDJYUDZHEIPXAVCNFSM6AAAAABJHREEQCVHI2DSMVQWIX3LMV43ASLTON2WKOZSGM2TAMBXGU2TKNA. You are receiving this because you are subscribed to this thread.Message ID: @.>

请问会官方支持proxy有相关链接吗,搜了一圈论坛和博客没找到相关信息,感谢

― Reply to this email directly, view it on GitHubhttps://github.com/ludoux/unraid-proxy-editor/issues/4#issuecomment-2172089986, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ADGWKTCSXAUXRHNOABTJRHLZHZHJ3AVCNFSM6AAAAABJHREEQCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNZSGA4DSOJYGY. You are receiving this because you commented.Message ID: @.***>