Detect whether the current process is running inside Docker/Kubernetes/LXC container
Project description
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 is_inside_container()
>>> from dockerdetect import is_inside_container()
>>> is_inside_container()
True
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-detect-0.0.2.tar.gz
(1.5 kB
view details)
File details
Details for the file docker-detect-0.0.2.tar.gz.
File metadata
- Download URL: docker-detect-0.0.2.tar.gz
- Upload date:
- Size: 1.5 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 |
fc54ad6cde1459ff200c19aee6b0173702147206199e8ec07eca7d28f5466ccc
|
|
| MD5 |
0cbde9dfbd00b7b0cb25e92d205f01de
|
|
| BLAKE2b-256 |
f436a139ad2f10abc74a44af4931c15817d38532262af74d9f95fe64a8667dc7
|