码迷,mamicode.com
首页 > 其他好文 > 详细

docker pull使用 代理

时间:2019-06-30 14:18:27      阅读:270      评论:0      收藏:0      [点我收藏+]

标签:pre   service   systemd   cgroup   app   kill   target   red   nta   

[root@fdfs-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使用 代理

标签:pre   service   systemd   cgroup   app   kill   target   red   nta   

原文地址:https://www.cnblogs.com/leleyao/p/11109534.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!