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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
docker-check-0.0.3.tar.gz
(3.6 kB
view hashes)
Built Distribution
Close
Hashes for docker_check-0.0.3-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 226e36324c2a39505bda08628e45cfafdc741aa36b2ac33f8050d4e0159cdca0 |
|
MD5 | 652fbd8d3203f1fd8cb9e313ab81bb8e |
|
BLAKE2b-256 | 0d794f1381b78066e043021562d1a523ffa24de402a2186ff447731e88108dbb |