我从apt安装了码头20.10.21。这台机器没有直接连接到互联网上,所以我们依赖于我们的squid代理。
我已经设置了一个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"
}
正如所描述的这里。
启动码头给予:
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
很明显我漏掉了什么。
发布于 2023-05-09 22:17:55
https://serverfault.com/questions/1130796
复制相似问题