mirror of
https://github.com/moby/moby.git
synced 2026-01-11 18:51:37 +00:00
PartOf deactivates the socket whenever the service get deactivated. The socket unit however should be active nevertheless, so that the docker service can be started again through socket activation. Based on the original patch in upstream moby/moby by Max Harmathy. Co-authored-by: Max Harmathy <max.harmathy@web.de> Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
14 lines
295 B
SYSTEMD
14 lines
295 B
SYSTEMD
[Unit]
|
|
Description=Docker Socket for the API
|
|
|
|
[Socket]
|
|
# If /var/run is not implemented as a symlink to /run, you may need to
|
|
# specify ListenStream=/var/run/docker.sock instead.
|
|
ListenStream=/run/docker.sock
|
|
SocketMode=0660
|
|
SocketUser=root
|
|
SocketGroup=docker
|
|
|
|
[Install]
|
|
WantedBy=sockets.target
|