ensure userns is disabled and pass env file to docker container
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
This commit is contained in:
parent
8c20b0a285
commit
0ec9e4daa4
@ -7,7 +7,6 @@ After=docker.service network-online.target
|
|||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Type=oneshot
|
Type=oneshot
|
||||||
EnvironmentFile=/etc/sysconfig/tidy
|
|
||||||
|
|
||||||
ExecStartPre=/bin/sh -c '/usr/bin/docker ps | /bin/grep %p 1> /dev/null && /usr/bin/docker kill %p || true'
|
ExecStartPre=/bin/sh -c '/usr/bin/docker ps | /bin/grep %p 1> /dev/null && /usr/bin/docker kill %p || true'
|
||||||
ExecStartPre=/bin/sh -c '/usr/bin/docker ps -a | /bin/grep %p 1> /dev/null && /usr/bin/docker rm %p || true'
|
ExecStartPre=/bin/sh -c '/usr/bin/docker ps -a | /bin/grep %p 1> /dev/null && /usr/bin/docker rm %p || true'
|
||||||
@ -15,8 +14,10 @@ ExecStartPre=/usr/bin/docker pull {{ dockertidy_image }}
|
|||||||
ExecStart=/usr/bin/docker run --rm \
|
ExecStart=/usr/bin/docker run --rm \
|
||||||
--name %p \
|
--name %p \
|
||||||
--hostname %p \
|
--hostname %p \
|
||||||
|
--env-file /etc/sysconfig/tidy \
|
||||||
--volume {{ dockertidy_docker_socket_path }}:/var/run/docker.sock \
|
--volume {{ dockertidy_docker_socket_path }}:/var/run/docker.sock \
|
||||||
--privileged=true \
|
--privileged=true \
|
||||||
|
--userns=host \
|
||||||
{{ dockertidy_image }} \
|
{{ dockertidy_image }} \
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
|
Loading…
Reference in New Issue
Block a user