forked from debops/ansible-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- Loading branch information
Florian Schimmer
committed
Dec 4, 2018
1 parent
44723aa
commit 2619ac2
Showing
4 changed files
with
59 additions
and
20 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
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
11 changes: 11 additions & 0 deletions
11
templates/etc/systemd/system/docker.service.d/service.conf.j2
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,11 @@ | ||
# {{ ansible_managed }} | ||
|
||
[Service] | ||
{% if docker__register_version.stdout | version_compare('1.12', '>=') %} | ||
ExecStart=/usr/bin/dockerd {{ docker__options | join(" ") }} | ||
{% elif docker__register_version.stdout | version_compare('1.10', '>=') %} | ||
ExecStart=/usr/bin/docker daemon {{ docker__options | join(" ") }} | ||
{% else %} | ||
EnvironmentFile=-/etc/default/docker | ||
ExecStart=/usr/bin/docker -d -H fd:// $DOCKER_OPTS | ||
{% endif %} |
14 changes: 14 additions & 0 deletions
14
templates/etc/systemd/system/docker.service.d/socket.conf.j2
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,14 @@ | ||
# {{ ansible_managed }} | ||
|
||
[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 |