docker-check-0.0.3
توضیحات
A small Python utility that tries to check if we are inside a Docker container.
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | docker-check-0.0.3 |
| نام | docker-check |
| نسخه کتابخانه | 0.0.3 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | night-crawler |
| ایمیل نویسنده | lilo.panic@gmail.com |
| آدرس صفحه اصلی | https://github.com/night-crawler/docker-check |
| آدرس اینترنتی | https://pypi.org/project/docker-check/ |
| مجوز | MIT |
docker-check
~~~~~~~~~~~~
A small Python utility that tries to check if we are inside a Docker
container.
Supports Linux and Windows containers.
Installation
~~~~~~~~~~~~
.. code:: bash
pip install -e git+https://github.com/night-crawler/docker-check.git@HEAD#egg=docker-check
# OR
pip install docker-check
Usage
~~~~~
.. code:: python
from docker_check import checker
if checker.is_inside_container():
print('Inside container')
else:
print('Not inside container')
نحوه نصب
نصب پکیج whl docker-check-0.0.3:
pip install docker-check-0.0.3.whl
نصب پکیج tar.gz docker-check-0.0.3:
pip install docker-check-0.0.3.tar.gz