I2P Address: [http://i2pgit.org]

Skip to content

Detect When Running as a Podman Container

Anastasiya Soyka requested to merge apsoyka/i2p.i2p:master into master

For whatever reason, Podman does not touch /.dockerenv when starting a container; instead, Podman will touch /run/.containerenv when starting a container. This messes with the container detection algorithm used in docker/rootfs/startapp.sh and prevents I2P from detecting that it is being run in a container when Podman is used instead of Docker.

This PR simply checks for the existence of /run/.containerenv in addition to /.dockerenv, thereby allowing I2P to detect that it is running in a container when Podman is used instead of Docker.

Merge request reports