Docker/Kubernetes/LXC container detection
Tries to detect whether the current process is running inside Docker/Kubernetes/LXC container.
Installation
$ pip install -U docker-detect
Example
Import and call iscontainer()
>>> from dockerdetect import is_inside_container()
>>> is_inside_container()
True
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
docker-detect-0.0.1.tar.gz
(1.3 kB
view details)
File details
Details for the file docker-detect-0.0.1.tar.gz.
File metadata
- Download URL: docker-detect-0.0.1.tar.gz
- Upload date:
- Size: 1.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.6.2 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8a2d85237a90e57084b2eabfd9f34645f7a59d2ad17e17217474c89a02b6beae
|
|
| MD5 |
aad68cb8f258a18c7a571e71db4d6295
|
|
| BLAKE2b-256 |
f06663e1adc89053bf246e12f138a40ff1239c6360cfeb0f594afac6e17d838f
|