Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/night-crawler/docker-check
- Owner: night-crawler
- Created: 2017-09-01T22:39:55.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2020-09-22T02:51:46.000Z (over 4 years ago)
- Last Synced: 2024-10-06T22:36:04.004Z (3 months ago)
- Topics: checker, docker, dockerized, python, utility
- Language: Python
- Homepage:
- Size: 11.7 KB
- Stars: 2
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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')
```