typora/note/devops/监控/docker-cadvisor.md

18 lines
375 B
Markdown
Raw Permalink Normal View History

2024-12-11 21:48:55 -05:00
### docker 部署
```bash
docker -H 192.168.0.1 run \
--volume=/:/rootfs:ro \
--volume=/var/run:/var/run:ro \
--volume=/sys:/sys:ro \
--volume=/var/lib/docker/:/var/lib/docker:ro \
--volume=/cgroup:/cgroup:ro \
--publish=8080:8080 \
--detach=true \
--device=/dev/kmsg \
--restart unless-stopped \
--name=cadvisor \
gcr.io/cadvisor/cadvisor:latest
```