Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/night-crawler/docker-check

A small Python utility that tries to check if we are inside a Docker container
https://github.com/night-crawler/docker-check

checker docker dockerized python utility

Last synced: 2 months ago
JSON representation

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

Awesome Lists containing this project

README

        

### docker-check

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

Supports Linux and Windows containers.

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

### Usage

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