add options to auto-enable userns-remap
All checks were successful
continuous-integration/drone/pr Build is passing
All checks were successful
continuous-integration/drone/pr Build is passing
This commit is contained in:
parent
c7477abeff
commit
8712f4307f
@ -49,9 +49,9 @@
|
|||||||
state: directory
|
state: directory
|
||||||
mode: "{{ item.mode }}"
|
mode: "{{ item.mode }}"
|
||||||
|
|
||||||
- name: Write service override
|
- name: Write service override.conf
|
||||||
template:
|
template:
|
||||||
src: etc/systemd/system/docker.service.d/override.j2
|
src: etc/systemd/system/docker.service.d/override.conf.j2
|
||||||
dest: /etc/systemd/system/docker.service.d/override.conf
|
dest: /etc/systemd/system/docker.service.d/override.conf
|
||||||
mode: 0644
|
mode: 0644
|
||||||
notify: __docker_restart
|
notify: __docker_restart
|
||||||
|
@ -1,4 +1,6 @@
|
|||||||
{{ ansible_managed | comment }}
|
{{ ansible_managed | comment }}
|
||||||
|
OPTIONS='{{' --userns-remap=' + dockerengine_nsremap_user + ':' + dockerengine_nsremap_user if dockerengine_usernamespace_enabled | bool else '' }}'
|
||||||
|
|
||||||
# Proxy settings
|
# Proxy settings
|
||||||
{% if dockerengine_http_proxy is defined %}
|
{% if dockerengine_http_proxy is defined %}
|
||||||
HTTP_PROXY={{ dockerengine_http_proxy }}
|
HTTP_PROXY={{ dockerengine_http_proxy }}
|
||||||
|
@ -0,0 +1,6 @@
|
|||||||
|
[Service]
|
||||||
|
EnvironmentFile=-/etc/sysconfig/docker
|
||||||
|
ExecStart=
|
||||||
|
ExecStart=/usr/bin/dockerd -H fd:// \
|
||||||
|
--containerd=/run/containerd/containerd.sock \
|
||||||
|
$OPTIONS
|
@ -1,4 +0,0 @@
|
|||||||
[Service]
|
|
||||||
EnvironmentFile=-/etc/sysconfig/docker
|
|
||||||
ExecStart=
|
|
||||||
ExecStart=/usr/bin/dockerd -H fd:// --containerd=/run/containerd/containerd.sock
|
|
Loading…
Reference in New Issue
Block a user