Skip to content

Commit

Permalink
Fix docker 18.09.1 systemd service
Browse files Browse the repository at this point in the history
The `docker-ce` 18.09.1 packaging missed an `After` dependency on containerd in the systemd service. Upstream PR: docker/docker-ce-packaging#290
  • Loading branch information
chadswen committed Jan 22, 2019
1 parent 77d31e6 commit e2592f1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions roles/container-engine/docker/templates/docker.service.j2
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@
Description=Docker Application Container Engine
Documentation=http://docs.docker.com
{% if ansible_os_family == "RedHat" %}
After=network.target docker-storage-setup.service
After=network.target docker-storage-setup.service{% if installed_docker_version.stdout is version('18.09.1', '>=') %} containerd.service{% endif %}
Wants=docker-storage-setup.service
{% elif ansible_os_family == "Debian" %}
After=network.target docker.socket
After=network.target docker.socket{% if installed_docker_version.stdout is version('18.09.1', '>=') %} containerd.service{% endif %}
Wants=docker.socket
{% elif ansible_os_family == "Suse" %}
After=network.target
After=network.target{% if installed_docker_version.stdout is version('18.09.1', '>=') %} containerd.service{% endif %}
{% endif %}

[Service]
Expand Down

0 comments on commit e2592f1

Please sign in to comment.