From c71a42859db33bfd783d5a9e1bc3efe82cd05f0e Mon Sep 17 00:00:00 2001 From: Anastasiya Soyka Date: Sat, 18 Mar 2023 17:32:38 +0000 Subject: [PATCH] Detect When Running as a Podman Container --- docker/rootfs/startapp.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker/rootfs/startapp.sh b/docker/rootfs/startapp.sh index 8cafdeb26f..d625ec2438 100644 --- a/docker/rootfs/startapp.sh +++ b/docker/rootfs/startapp.sh @@ -22,7 +22,7 @@ for jar in `ls lib/*.jar`; do CLASSPATH=${CLASSPATH}:${jar} done -if [ -f /.dockerenv ]; then +if [ -f /.dockerenv ] || [ -f /run/.containerenv ]; then echo "[startapp] Running in container" if [ -z "$IP_ADDR" ]; then export IP_ADDR=$(hostname -i)