MINOR: debug: report in post_mortem if the container techno used is docker
authorWilly Tarreau <w@1wt.eu>
Wed, 22 Nov 2023 10:48:23 +0000 (11:48 +0100)
committerWilly Tarreau <w@1wt.eu>
Thu, 23 Nov 2023 14:39:21 +0000 (15:39 +0100)
commit2974f3e71b91c34ac5407673f2db7d1028d81383
treee6776731acdb41b8908662a32a9d59b33555267a
parentcf8be50a3d0348158be7efe222eaa4ca480e176d
MINOR: debug: report in post_mortem if the container techno used is docker

If we detect we're running inside a container on Linux, let's check if
it seems to be docker. Docker usually creates a /.dockerenv file, which
is easy to check. It's uncertain whether it's always the case, but on the
few tested instances that was true, and we don't really care, what matters
is to place helpful debugging info for developers. When this file is
detected, we report "docker" instead of "yes" in the container techno.
src/debug.c