container-detect

Detect if your Python process is running inside a container. Supports Docker, Podman, Kubernetes, containerd, LXC, and more. Inspired by the popular is-inside-container npm package. Supports cached results with optional refresh.

container-detect has been downloaded 2,168 times in total on PyPI, including 131 in the last 30 days. The latest version is 1.0.0, released Jan 25, 2026. It is distributed under the MIT license.

Version1.0.0
Downloads
2.17k
LicenseMIT
Author"Y. Siva Sai Krishna"
UpdatedJan 25, 2026

Downloads

Weekly, last 90d.
Includes CI traffic.

VersionsTotal1.*
Range
View
Granularity
Group by
CI traffic
Stack: OffCI: Included2 / 2 series
Selected total624
2.2kAll-time
131Last 30 days
1Last 24 h
<0.01/sPer second

Version distribution

Share of downloads by released version. Computed over the last quarter.

  • 01

    1.0.0

    312 downloads
    100%

Guess the next day

Thirteen recent days of container-detect downloads. Drag the green handle on the right to guess where day fourteen lands.

TRUTH13THUFRISATSUNMONTUEWEDTHUFRISATMONTUEWED
    container-detect · 2.2k downloads on PyPI