Skip to content

Commit

Permalink
Set TINI_SUBREAPER env variable in dockerfile (#1021)
Browse files Browse the repository at this point in the history
We use tini as the init process in our main dockerfile,
this causes an issue if we set the pid namespace to the host
because the kernel won't re-parent zombie children to this
proc. As a result, tini fails if it's not pid 1 or if TINI_SUBREAPER
is not set to true.

Signed-off-by: grantseltzer <grantseltzer@gmail.com>
  • Loading branch information
grantseltzer committed Sep 23, 2021
1 parent 07969fa commit 86de9c5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,6 @@ LABEL org.label-schema.build-date=$BUILD_DATE \
org.label-schema.vendor="Aqua Security" \
org.label-schema.version=$VERSION

ENV TINI_SUBREAPER=true

ENTRYPOINT ["/sbin/tini", "-g", "--", "./entrypoint.sh"]

0 comments on commit 86de9c5

Please sign in to comment.