Skip to main content

A small Python utility that tries to check if we are inside a Docker container.

Project description

docker-check

A small Python utility that tries to check if we are inside a Docker container.

Installation

pip install -e git+https://github.com/night-crawler/docker-check.git@HEAD#egg=docker-check
# OR
pip install docker-check

Sample

from docker_check import checker
checker.has_dockerenv()
checker.has_docker_in_proc_1_cgroup()
checker.is_inside_container()

Project details


Release history Release notifications

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
docker_check-0.0.2-py3-none-any.whl (3.8 kB) Copy SHA256 hash SHA256 Wheel 3.6
docker_check-0.0.2.tar.gz (1.8 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page