Detect When Running as a Podman Container
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.