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 details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file docker-check-0.0.3.tar.gz.
File metadata
- Download URL: docker-check-0.0.3.tar.gz
- Upload date:
- Size: 3.6 kB
- Tags: Source
- Uploaded using 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
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4ddef4cb5493f9be96830ecbe2d1ee06c7a88a36e089d61f023f736633524fb6
|
|
| MD5 |
06f13dc3052c39980f7eca7e68cffd91
|
|
| BLAKE2b-256 |
b602a18f31eafb43106da0be298f3a2b531982635dad29f634d948e13b65f724
|
File details
Details for the file docker_check-0.0.3-py2.py3-none-any.whl.
File metadata
- Download URL: docker_check-0.0.3-py2.py3-none-any.whl
- Upload date:
- Size: 2.4 kB
- Tags: Python 2, Python 3
- Uploaded using 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
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
226e36324c2a39505bda08628e45cfafdc741aa36b2ac33f8050d4e0159cdca0
|
|
| MD5 |
652fbd8d3203f1fd8cb9e313ab81bb8e
|
|
| BLAKE2b-256 |
0d794f1381b78066e043021562d1a523ffa24de402a2186ff447731e88108dbb
|