Skip to content

night-crawler/docker-check

Repository files navigation

docker-check

A small Python utility that tries to check if we are inside a Docker container.

Supports Linux and Windows containers.

Installation

pip install -e git+https://github.com/night-crawler/docker-check.git@HEAD#egg=docker-check
# OR
pip install docker-check

Usage

from docker_check import checker
if checker.is_inside_container():
    print('Inside container')
else:
    print('Not inside container')

About

A small Python utility that tries to check if we are inside a Docker container

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •