docker pull使用 代理
Posted leleyao
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了docker pull使用 代理相关的知识,希望对你有一定的参考价值。
[[email protected]1 ~]# cat /usr/lib/systemd/system/docker.service [Unit] Description=Docker Application Container Engine Documentation=https://docs.docker.com BindsTo=containerd.service After=network-online.target firewalld.service containerd.service Wants=network-online.target Requires=docker.socket [Service] Type=notify # the default is not to use systemd for cgroups because the delegate issues still # exists and systemd currently does not support the cgroup feature set required # for containers run by docker Environment="HTTP_PROXY=proxy.com:8080" "HTTPS_PROXY=proxy.com:8080" ExecStart=/usr/bin/dockerd -H fd:// --containerd=/run/containerd/containerd.sock ExecReload=/bin/kill -s HUP $MAINPID TimeoutSec=0 RestartSec=2 Restart=always
以上是关于docker pull使用 代理的主要内容,如果未能解决你的问题,请参考以下文章