Created How to Monitor Docker Containers (markdown)

Louis Lam 2022-09-12 17:29:54 +08:00
parent f73aac0d0d
commit a7e9d3cae2

@ -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