mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Add the docker.socket back in
Re-adds the docker.socket file for debian based distributions. Signed-off-by: Eli Uriegas <eli.uriegas@docker.com>
This commit is contained in:
parent
0fa3c8c277
commit
07c9fef311
3 changed files with 20 additions and 1 deletions
|
@ -10,7 +10,7 @@ Type=notify
|
|||
# the default is not to use systemd for cgroups because the delegate issues still
|
||||
# exists and systemd currently does not support the cgroup feature set required
|
||||
# for containers run by docker
|
||||
ExecStart=/usr/bin/dockerd -H unix://
|
||||
ExecStart=/usr/bin/dockerd
|
||||
ExecReload=/bin/kill -s HUP $MAINPID
|
||||
TimeoutSec=0
|
||||
RestartSec=2
|
||||
|
|
12
contrib/init/systemd/docker.socket
Normal file
12
contrib/init/systemd/docker.socket
Normal file
|
@ -0,0 +1,12 @@
|
|||
[Unit]
|
||||
Description=Docker Socket for the API
|
||||
PartOf=docker.service
|
||||
|
||||
[Socket]
|
||||
ListenStream=/var/run/docker.sock
|
||||
SocketMode=0660
|
||||
SocketUser=root
|
||||
SocketGroup=docker
|
||||
|
||||
[Install]
|
||||
WantedBy=sockets.target
|
7
systemd/00-socket-activation.conf
Normal file
7
systemd/00-socket-activation.conf
Normal file
|
@ -0,0 +1,7 @@
|
|||
[Unit]
|
||||
After=docker.socket
|
||||
Requires=docker.socket
|
||||
|
||||
[Service]
|
||||
ExecStart=
|
||||
ExecStart=/usr/bin/dockerd -H fd://
|
Loading…
Add table
Reference in a new issue