Skip to main content
Join the official 2020 Python Developers SurveyStart the survey!

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.

Supports Linux and Windows containers.

Installation

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

Usage

from docker_check import checker
if checker.is_inside_container():
    print('Inside container')
else:
    print('Not 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.3
Filename, size File type Python version Upload date Hashes
Filename, size docker_check-0.0.3-py2.py3-none-any.whl (2.4 kB) File type Wheel Python version py2.py3 Upload date Hashes View
Filename, size docker-check-0.0.3.tar.gz (3.6 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