Skip to main content

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

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)

Uploaded Source

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

Hashes for docker-detect-0.0.2.tar.gz
Algorithm Hash digest
SHA256 fc54ad6cde1459ff200c19aee6b0173702147206199e8ec07eca7d28f5466ccc
MD5 0cbde9dfbd00b7b0cb25e92d205f01de
BLAKE2b-256 f436a139ad2f10abc74a44af4931c15817d38532262af74d9f95fe64a8667dc7

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.0.2 This release

1 file

0.0.1

1 file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page