Skip to main content

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')

Metadata

Release files for docker-check 0.0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for docker-check 0.0.3
File Size Uploaded
docker-check-0.0.3.tar.gz 3.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for docker-check 0.0.3
File Interpreter ABI Platform
docker_check-0.0.3-py2.py3-none-any.whl Python 2, Python 3 none any Details

Total release size: 6.1 kB

Release files / docker-check-0.0.3.tar.gz

Download URL docker-check-0.0.3.tar.gz
Size 3.6 kB
Tags Source
SHA-256 checksum
How to use checksums
4ddef4cb5493f9be96830ecbe2d1ee06c7a88a36e089d61f023f736633524fb6
BLAKE2b-256 checksum
How to use checksums
b602a18f31eafb43106da0be298f3a2b531982635dad29f634d948e13b65f724
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/44.1.1 requests-toolbelt/0.9.1 tqdm/4.48.0 CPython/3.8.2

Release files / docker_check-0.0.3-py2.py3-none-any.whl

Download URL docker_check-0.0.3-py2.py3-none-any.whl
Size 2.4 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
226e36324c2a39505bda08628e45cfafdc741aa36b2ac33f8050d4e0159cdca0
BLAKE2b-256 checksum
How to use checksums
0d794f1381b78066e043021562d1a523ffa24de402a2186ff447731e88108dbb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/44.1.1 requests-toolbelt/0.9.1 tqdm/4.48.0 CPython/3.8.2

Release history Release notifications | RSS feed

This release

0.0.3 This release

2 release files

0.0.2

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page