forked from pool/docker
Accepting request 422714 from home:cyphar:branches:Virtualization:containers
Fixes the overwrites of docker.service. OBS-URL: https://build.opensuse.org/request/show/422714 OBS-URL: https://build.opensuse.org/package/show/Virtualization:containers/docker?expand=0&rev=132
This commit is contained in:
parent
d227abc5a1
commit
d3620f68cb
@ -1,3 +1,10 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Aug 26 08:49:15 UTC 2016 - asarai@suse.com
|
||||||
|
|
||||||
|
- Update docker.service file with several changes.
|
||||||
|
* Reapply fix for bsc#983015 (Limit*=infinity).
|
||||||
|
* Specify an "OCI" runtime for our runc package explicitly. bsc#978260
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Thu Aug 25 14:02:04 UTC 2016 - jmassaguerpla@suse.com
|
Thu Aug 25 14:02:04 UTC 2016 - jmassaguerpla@suse.com
|
||||||
|
|
||||||
|
@ -6,11 +6,35 @@ Requires=docker.socket containerd.socket
|
|||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
EnvironmentFile=/etc/sysconfig/docker
|
EnvironmentFile=/etc/sysconfig/docker
|
||||||
ExecStart=/usr/bin/dockerd -H fd:// --containerd /run/containerd/containerd.sock $DOCKER_NETWORK_OPTIONS $DOCKER_OPTS
|
|
||||||
LimitNOFILE=1048576
|
# Quick rundown of options, so we can keep track of them. Upstream's
|
||||||
LimitNPROC=1048576
|
# service file only contains -H.
|
||||||
|
#
|
||||||
|
# * -H tells Docker that it's running as a socket-activated service.
|
||||||
|
# * --containerd tells Docker to not manage the running of containerd.
|
||||||
|
# * --add-runtime and --default-runtime tell Docker to not try to use
|
||||||
|
# its "bundled" runC version (which is not shipped by us) but rather use
|
||||||
|
# the runC version provided as by the runc package.
|
||||||
|
ExecStart=/usr/bin/dockerd -H fd:// --containerd /run/containerd/containerd.sock --add-runtime oci=/usr/sbin/runc --default-runtime oci $DOCKER_NETWORK_OPTIONS $DOCKER_OPTS
|
||||||
|
ExecReload=/bin/kill -s HUP $MAINPID
|
||||||
|
|
||||||
|
# Having non-zero Limit*s causes performance problems due to accounting overhead
|
||||||
|
# in the kernel. We recommend using cgroups to do container-local accounting.
|
||||||
|
LimitNOFILE=infinity
|
||||||
|
LimitNPROC=infinity
|
||||||
LimitCORE=infinity
|
LimitCORE=infinity
|
||||||
|
|
||||||
|
# Uncomment TasksMax if your systemd version supports it.
|
||||||
|
# Only systemd 226 and above support this property.
|
||||||
|
#TasksMax=infinity
|
||||||
|
|
||||||
|
# Set delegate yes so that systemd does not reset the cgroups of docker containers
|
||||||
|
# Only systemd 218 and above support this property.
|
||||||
|
#Delegate=yes
|
||||||
|
|
||||||
|
# Tis is not necessary because of how we set up containerd.
|
||||||
|
#KillMode=process
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user