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.
Installation
pip install -e git+https://github.com/night-crawler/docker-check.git@HEAD#egg=docker-check
# OR
pip install docker-check
Sample
from docker_check import checker
checker.has_dockerenv()
checker.has_docker_in_proc_1_cgroup()
checker.is_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.2.tar.gz
(1.8 kB
view hashes)
Built Distribution
Close
Hashes for docker_check-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d52ed1e52a125e54ab66bacaf55e55b0a87f2cb68b3523418da34ed0ea327156 |
|
MD5 | 5ca424dda09f251cd15cde82b5ba731d |
|
BLAKE2b-256 | 33c12a0323dc88193eab50298ac097929366c74e8bd3512cf9937979b058eb9e |