群晖 docker daemon http proxy 配置

操作

  1. 添加 /etc/docker/env 文件
export HTTP_PROXY=127.0.0.1:8899
  1. 编辑 /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
posted @ 2020-10-09 18:54  snadn  阅读(2535)  评论(1编辑  收藏  举报