mirror of
https://github.com/i2p/i2p.i2p.git
synced 2026-07-20 04:51:00 +00:00
Detect When Running as a Podman Container
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user