diff --git a/ansible/roles/baremetal/defaults/main.yml b/ansible/roles/baremetal/defaults/main.yml index 62584c8b20..67e252f765 100644 --- a/ansible/roles/baremetal/defaults/main.yml +++ b/ansible/roles/baremetal/defaults/main.yml @@ -16,6 +16,8 @@ disable_selinux: True docker_storage_driver: "" +docker_runtime_directory: "" + debian_pkg_install: - "{{ 'docker-ce' if ansible_architecture == 'aarch64' else 'docker-engine=1.12.*' }}" - git diff --git a/ansible/roles/baremetal/templates/docker_systemd_service.j2 b/ansible/roles/baremetal/templates/docker_systemd_service.j2 index b3c7644817..4b0b76bcd8 100644 --- a/ansible/roles/baremetal/templates/docker_systemd_service.j2 +++ b/ansible/roles/baremetal/templates/docker_systemd_service.j2 @@ -1,4 +1,4 @@ [Service] MountFlags=shared ExecStart= -ExecStart=/usr/bin/{{ docker_binary_name|default("docker daemon", true) }}{% if docker_registry %} --insecure-registry {{ docker_registry }}{% endif %}{% if docker_storage_driver %} --storage-driver {{ docker_storage_driver }}{% endif %} +ExecStart=/usr/bin/{{ docker_binary_name|default("docker daemon", true) }}{% if docker_registry %} --insecure-registry {{ docker_registry }}{% endif %}{% if docker_storage_driver %} --storage-driver {{ docker_storage_driver }}{% endif %}{% if docker_runtime_directory %} --graph {{ docker_runtime_directory }}{% endif %} diff --git a/releasenotes/notes/support-docker-runtime-directory-set-da7e77a70626c0d1.yaml b/releasenotes/notes/support-docker-runtime-directory-set-da7e77a70626c0d1.yaml new file mode 100644 index 0000000000..4fb96eb76f --- /dev/null +++ b/releasenotes/notes/support-docker-runtime-directory-set-da7e77a70626c0d1.yaml @@ -0,0 +1,5 @@ +--- +features: + - | + Set docker runtime directory by configure the docker daemon.An operator + named "docker_runtime_directory" will be add.