群晖 docker daemon http proxy 配置
操作
- 添加
/etc/docker/env
文件
export HTTP_PROXY=127.0.0.1:8899
- 编辑
/etc/init/pkg-Docker-dockerd.conf
文件
exec /var/packages/Docker/target/usr/bin/dockerd --config-file /var/packages/Docker/etc/dockerd.json
改为
#exec /var/packages/Docker/target/usr/bin/dockerd --config-file /var/packages/Docker/etc/dockerd.json
script
source /etc/docker/env
/var/packages/Docker/target/usr/bin/dockerd --config-file /var/packages/Docker/etc/dockerd.json
end script