We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9736fe8 commit 22d1049Copy full SHA for 22d1049
examples/docker/docker-compose.yml
@@ -84,11 +84,13 @@ services:
84
cadvisor:
85
image: gcr.io/cadvisor/cadvisor:latest
86
container_name: cadvisor
87
+ privileged: true
88
ports:
89
- 8080:8080
90
volumes:
91
- /:/rootfs:ro
- - /var/run:/var/run:rw
92
+ - /etc/machine-id:/etc/machine-id:ro
93
+ - /var/run/docker.sock:/var/run/docker.sock:rw
94
- /sys:/sys:ro
95
- /var/lib/docker/:/var/lib/docker:ro
96
depends_on:
examples/docker/prometheus.yml
@@ -19,7 +19,7 @@ scrape_configs:
19
scrape_interval: 5s
20
static_configs:
21
- targets:
22
- - cadvisor:8080
+ - docker.for.mac.localhost:8080
23
# - job_name: 'frontend'
24
# static_configs:
25
# - targets: ['localhost:3333']
0 commit comments