Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create the systemd.service for Debian which respects /etc/default/docker
Signed-off-by: onorua <onorua@x.dev>
- Loading branch information
Showing
3 changed files
with
31 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
Lokesh Mandvekar <lsm5@fedoraproject.org> (@lsm5) | ||
Brandon Philips <brandon.philips@coreos.com> (@philips) | ||
Jessie Frazelle <jess@docker.com> (@jfrazelle) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
[Unit] | ||
Description=Docker Application Container Engine | ||
Documentation=http://docs.docker.com | ||
After=network.target docker.socket | ||
Requires=docker.socket | ||
|
||
[Service] | ||
EnvironmentFile=/etc/default/docker | ||
ExecStart=/usr/bin/docker -d -H fd:// $DOCKER_OPTS | ||
MountFlags=slave | ||
LimitNOFILE=1048576 | ||
LimitNPROC=1048576 | ||
LimitCORE=infinity | ||
|
||
[Install] | ||
WantedBy=multi-user.target |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |