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


Download files

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

Files for docker_check, version 0.0.2
Filename, size File type Python version Upload date Hashes
Filename, size docker_check-0.0.2-py3-none-any.whl (3.8 kB) File type Wheel Python version 3.6 Upload date Hashes View
Filename, size docker_check-0.0.2.tar.gz (1.8 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page