night-crawler / docker-check Goto Github PK
View Code? Open in Web Editor NEWA small Python utility that tries to check if we are inside a Docker container
A small Python utility that tries to check if we are inside a Docker container
It seems like a reliable way to check this is looking for service cexecsvc
.
I havent tried it yet
File "/Users/uuu/Library/Caches/pypoetry/virtualenvs/django-backend-8_JPUAxs-py3.6/lib/python3.6/site-packages/docker_check/checker.py", line 20, in is_inside_container
if has_docker_in_proc_1_cgroup():
File "/Users/uuu/Library/Caches/pypoetry/virtualenvs/django-backend-8_JPUAxs-py3.6/lib/python3.6/site-packages/docker_check/checker.py", line 10, in has_docker_in_proc_1_cgroup
with open('/proc/1/cgroup', 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/proc/1/cgroup'
Do you consider publishing this project as a PIP package? In my opinion it would be pretty useful and easier to install.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.