You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Ubuntu 20.04环境下Docker配置Squid代理时daemon.json报错求助

Ubuntu 20.04环境下Docker配置Squid代理时daemon.json报错求助

各位大佬好,我遇到了一个Docker配置代理的问题,想请教下大家:

我在Ubuntu 20.04系统上通过apt安装了Docker 20.10.21,这台机器没法直接连接外网,只能依赖我们的Squid代理访问外部资源。

我参照教程配置了/etc/docker/daemon.json文件,执行查看命令的结果如下:

rful011@secphires01:~$ cat /etc/docker/daemon.json
{
"http-proxy": "http://squid.auckland.ac.nz:3128",
"https-proxy": "http://squid.auckland.ac.nz:3128",
"no-proxy": "*.auckland.ac.nz"
}

但当我手动启动dockerd的时候,却弹出了错误提示:

rful011@secphires01:~$ sudo /usr/bin/dockerd -H fd:// --containerd=/run/containerd/containerd.sock
unable to configure the Docker daemon with file /etc/docker/daemon.json: the following directives don't match any configuration option: no-proxy, http-proxy, https-proxy

我肯定是哪里配置错了,但实在找不到问题点,有没有朋友能帮我排查下?

备注:内容来源于stack exchange,提问作者Russell Fulton

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.04.22 12:35:29