Remove docker-storage-setup dependency if not needed (#4077)
When docker_container_storage_setup is false, docker service should not depend on docker-storage-setup service, because it's not installed. For example, when using overlay2 on recent RHEL 7/Centos 7 kernels, you most likely don't need it.
This commit is contained in:
parent
48a182844c
commit
7b77e2d232
1 changed files with 2 additions and 2 deletions
|
@ -2,8 +2,8 @@
|
||||||
Description=Docker Application Container Engine
|
Description=Docker Application Container Engine
|
||||||
Documentation=http://docs.docker.com
|
Documentation=http://docs.docker.com
|
||||||
{% if ansible_os_family == "RedHat" %}
|
{% if ansible_os_family == "RedHat" %}
|
||||||
After=network.target docker-storage-setup.service{{ ' containerd.service' if installed_docker_version.stdout is version('18.09.1', '>=') else '' }}
|
After=network.target {{ ' docker-storage-setup.service' if docker_container_storage_setup else '' }}{{ ' containerd.service' if installed_docker_version.stdout is version('18.09.1', '>=') else '' }}
|
||||||
Wants=docker-storage-setup.service
|
{{ 'Wants=docker-storage-setup.service' if docker_container_storage_setup else '' }}
|
||||||
{% elif ansible_os_family == "Debian" %}
|
{% elif ansible_os_family == "Debian" %}
|
||||||
After=network.target docker.socket{{ ' containerd.service' if installed_docker_version.stdout is version('18.09.1', '>=') else '' }}
|
After=network.target docker.socket{{ ' containerd.service' if installed_docker_version.stdout is version('18.09.1', '>=') else '' }}
|
||||||
Wants=docker.socket
|
Wants=docker.socket
|
||||||
|
|
Loading…
Reference in a new issue