Skip to content
Snippets Groups Projects
Unverified Commit b4eb2519 authored by Rong Zhang's avatar Rong Zhang Committed by GitHub
Browse files

Merge pull request #3730 from elementyang/pr-docker-options

fix modify deprecated --graph flag
parents ac00d23b 1ebb6701
No related branches found
No related tags found
No related merge requests found
......@@ -57,7 +57,11 @@ docker_options: >-
{% if docker_registry_mirrors is defined -%}
{{ docker_registry_mirrors | map('regex_replace', '^(.*)$', '--registry-mirror=\1' ) | list | join(' ') }}
{%- endif %}
{%- if docker_version is version('17.05', '<') -%}
--graph={{ docker_daemon_graph }} {{ docker_log_opts }}
{%- else -%}
--data-root={{ docker_daemon_graph }} {{ docker_log_opts }}
{%- endif %}
{%- if ansible_architecture == "aarch64" and ansible_os_family == "RedHat" %}
--add-runtime docker-runc=/usr/libexec/docker/docker-runc-current
--default-runtime=docker-runc --exec-opt native.cgroupdriver=systemd
......
......@@ -213,7 +213,11 @@ docker_options: >-
{% if docker_registry_mirrors is defined -%}
{{ docker_registry_mirrors | map('regex_replace', '^(.*)$', '--registry-mirror=\1' ) | list | join(' ') }}
{%- endif %}
{%- if docker_version is version('17.05', '<') -%}
--graph={{ docker_daemon_graph }} {{ docker_log_opts }}
{%- else -%}
--data-root={{ docker_daemon_graph }} {{ docker_log_opts }}
{%- endif %}
{%- if ansible_architecture == "aarch64" and ansible_os_family == "RedHat" %}
--add-runtime docker-runc=/usr/libexec/docker/docker-runc-current
--default-runtime=docker-runc --exec-opt native.cgroupdriver=systemd
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment