https://github.com/allanpk716/is_running_in_docker
Check a process is running inside docker container
https://github.com/allanpk716/is_running_in_docker
check docker process running
Last synced: about 1 year ago
JSON representation
Check a process is running inside docker container
- Host: GitHub
- URL: https://github.com/allanpk716/is_running_in_docker
- Owner: allanpk716
- License: mit
- Created: 2022-09-11T09:23:33.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2022-09-11T09:27:24.000Z (almost 4 years ago)
- Last Synced: 2025-04-14T01:12:33.490Z (about 1 year ago)
- Topics: check, docker, process, running
- Language: Go
- Homepage:
- Size: 3.91 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Check a process is running inside docker container
Use this function`IsRunningInDocker` to check process is running inside docker container.
## Thx
* [Golang 如何确定App是否运行在Docker内 | Chen-Tao](http://chen-tao.github.io/2017/09/11/Go-check-if-app-running-in-docker/)
* [shell - How to check if a process is running inside docker container? - Stack Overflow](https://stackoverflow.com/questions/23513045/how-to-check-if-a-process-is-running-inside-docker-container)