sovrin-foundation / steward-tools

tools for Sovrin steward
Apache License 2.0
9 stars 22 forks source link

Add detection for podman container #38

Closed tsurai closed 4 years ago

tsurai commented 4 years ago

This PR adds detection for podman container by checking the existence of /run/.containerenv. This is the recommended method as per podman run manpage:

[...] Additionally, an empty file is created in each container to indicate to programs they are running in a container. This file is located at /run/.containerenv.

cc @WadeBarnes