Skip to content

Commit

Permalink
Fixes geerlingguy#97, Triggers geerlingguy#98, Makes me sad: Fix Dock…
Browse files Browse the repository at this point in the history
…er 18.09.0 startup issue on systemd systems.
  • Loading branch information
geerlingguy committed Nov 13, 2018
1 parent 4a71ec7 commit d8a4438
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tasks/docker-1809-shim.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
- name: Ensure containerd service dir exists.
file:
path: /etc/systemd/system/containerd.service.d
state: directory

- name: Add shim to ensure Docker can start in all environments.
template:
src: override.conf.j2
dest: /etc/systemd/system/containerd.service.d/override.conf
4 changes: 4 additions & 0 deletions tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@
state: "{{ docker_package_state }}"
notify: restart docker

# TODO: Remove this shim once 18.09.1 or later is released.
- import_tasks: docker-1809-shim.yml
when: ansible_service_mgr == 'systemd'

- name: Ensure Docker is started and enabled at boot.
service:
name: docker
Expand Down
2 changes: 2 additions & 0 deletions templates/override.conf.j2
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[Service]
ExecStartPre=

0 comments on commit d8a4438

Please sign in to comment.