in-container

Check if running inside a Docker container


Keywords
container, docker, python
License
MIT
Install
pip install in-container==0.4

Documentation

in-container PyPI versionBuild Statuscodecov

Allows you to check if your program is running inside a Docker container

Install

$ pip install in-container

Usage

from in_container import in_container
print(in_container()) # True or False

License

MIT