forked from pool/docker
42faa36b3e
1 OBS-URL: https://build.opensuse.org/request/show/294716 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/docker?expand=0&rev=14
17 lines
414 B
SYSTEMD
17 lines
414 B
SYSTEMD
[Unit]
|
|
Description=Docker Socket for the API
|
|
PartOf=docker.service
|
|
|
|
[Socket]
|
|
ListenStream=/var/run/docker.sock
|
|
SocketMode=0660
|
|
# TODO: Get rid of workaround below after adopting systemd 214+ by oS Factory
|
|
# Socket(User|Group) are available as of systemd 214+
|
|
#SocketUser=root
|
|
#SocketGroup=docker
|
|
# Fix owner manually
|
|
ExecStartPost=/usr/bin/chown root:docker /var/run/docker.sock
|
|
|
|
[Install]
|
|
WantedBy=sockets.target
|