mirror of
https://github.com/louislam/uptime-kuma.git
synced 2024-11-27 16:54:04 +00:00
Created How to Monitor Docker Containers (markdown)
parent
f73aac0d0d
commit
a7e9d3cae2
1 changed files with 27 additions and 0 deletions
27
How-to-Monitor-Docker-Containers.md
Normal file
27
How-to-Monitor-Docker-Containers.md
Normal file
|
@ -0,0 +1,27 @@
|
|||
## If you are running Uptime Kuma Docker
|
||||
|
||||
By default, a docker container is self-contained, which means Uptime Kuma cannot access your host. You need to bind the /var/run/docker.sock to your container.
|
||||
|
||||
### (Method 1) Share docker.sock with Uptime Kuma Container
|
||||
|
||||
Command argument:
|
||||
```bash
|
||||
-v /var/run/docker.sock:/var/run/docker.sock:ro
|
||||
```
|
||||
|
||||
docker-compose:
|
||||
|
||||
```yml
|
||||
volumes:
|
||||
- /var/run/docker.sock:/var/run/docker.sock:ro
|
||||
```
|
||||
|
||||
`:ro` (**r**ead**o**nly) is recommended.
|
||||
|
||||
### (Method 2) TCP - Bridge Mode
|
||||
|
||||
TODO
|
||||
|
||||
## Related Disscussion
|
||||
|
||||
- https://github.com/louislam/uptime-kuma/issues/2061#event-7365512787
|
Loading…
Reference in a new issue