~brianlbaird/charms/trusty/pcrf/trunk

« back to all changes in this revision

Viewing changes to trusty/pcrf/deps/layer/layer-docker/templates/docker.systemd

  • Committer: brian baird
  • Date: 2016-08-24 18:05:17 UTC
  • Revision ID: brianlbaird@gmail.com-20160824180517-uyp6100mfwuj6les
dt demo

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
[Unit]
 
2
Description=Docker Application Container Engine
 
3
Documentation=https://docs.docker.com
 
4
After=network.target docker.socket
 
5
Requires=docker.socket
 
6
 
 
7
[Service]
 
8
Type=notify
 
9
# the default is not to use systemd for cgroups because the delegate issues still
 
10
# exists and systemd currently does not support the cgroup feature set required
 
11
# for containers run by docker
 
12
EnvironmentFile=-/etc/default/docker
 
13
ExecStart=/usr/bin/dockerd -H fd:// $DOCKER_OPTS
 
14
ExecReload=/bin/kill -s HUP $MAINPID
 
15
# Having non-zero Limit*s causes performance problems due to accounting overhead
 
16
# in the kernel. We recommend using cgroups to do container-local accounting.
 
17
LimitNOFILE=infinity
 
18
LimitNPROC=infinity
 
19
LimitCORE=infinity
 
20
# Uncomment TasksMax if your systemd version supports it.
 
21
# Only systemd 226 and above support this version.
 
22
TasksMax=infinity
 
23
TimeoutStartSec=0
 
24
# set delegate yes so that systemd does not reset the cgroups of docker containers
 
25
Delegate=yes
 
26
# kill only the docker process, not all processes in the cgroup
 
27
KillMode=process
 
28
{% if http_proxy or https_proxy  %}
 
29
Environment="HTTP_PROXY={{ http_proxy }}"
 
30
Environment="HTTPS_PROXY={{ https_proxy }}"
 
31
{% endif %}
 
32
[Install]
 
33
WantedBy=multi-user.target