19 lines
541 B
SYSTEMD
19 lines
541 B
SYSTEMD
|
[Unit]
|
||
|
Description=Docker Socket for the API
|
||
|
# We use BindsTo in order to make sure that you cannot use socket-activation
|
||
|
# with Docker (Docker must always start at boot if enabled, otherwise
|
||
|
# containers will not run until some administrator interacts with Docker).
|
||
|
BindsTo=docker.service
|
||
|
|
||
|
[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
|
||
|
|