Skip to content

Commit

Permalink
Fix bind mounts with Docker 27.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
yorickdowne committed Sep 20, 2024
1 parent 003960b commit 4341c15
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions grafana-cloud.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ services:
pid: host
restart: unless-stopped
volumes:
- '/:/host:ro,rslave'
- /:/host:ro,rslave
- /etc/hostname:/etc/nodename:ro
- /proc:/host/proc:ro
- /sys:/host/sys:ro
Expand Down Expand Up @@ -112,10 +112,10 @@ services:
image: gcr.io/cadvisor/cadvisor:v0.49.1
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
- /:/rootfs:ro
- /:/rootfs:ro,rslave
- /var/run:/var/run
- /sys:/sys:ro
- /var/lib/docker:/var/lib/docker:ro
- /var/lib/docker:/var/lib/docker:ro,rslave
command:
- --docker_only
- --housekeeping_interval=30s
Expand All @@ -134,7 +134,7 @@ services:
- /etc/machine-id:/etc/machine-id:ro
- ./promtail:/etc/promtail
- promtail-data:/tmp
- /var/lib/docker/containers:/var/lib/docker/containers:ro
- /var/lib/docker/containers:/var/lib/docker/containers:ro,rslave
entrypoint: ./etc/promtail/entrypoint.sh
command: ["/usr/bin/promtail"]
environment:
Expand Down
8 changes: 4 additions & 4 deletions grafana.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ services:
pid: host
restart: unless-stopped
volumes:
- '/:/host:ro,rslave'
- /:/host:ro,rslave
- /etc/hostname:/etc/nodename:ro
- /proc:/host/proc:ro
- /sys:/host/sys:ro
Expand Down Expand Up @@ -105,10 +105,10 @@ services:
image: gcr.io/cadvisor/cadvisor:v0.49.1
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
- /:/rootfs:ro
- /:/rootfs:ro,rslave
- /var/run:/var/run
- /sys:/sys:ro
- /var/lib/docker:/var/lib/docker:ro
- /var/lib/docker:/var/lib/docker:ro,rslave
command:
- --docker_only
- --housekeeping_interval=30s
Expand All @@ -127,7 +127,7 @@ services:
- /etc/machine-id:/etc/machine-id:ro
- ./promtail:/etc/promtail
- promtail-data:/tmp
- /var/lib/docker/containers:/var/lib/docker/containers:ro
- /var/lib/docker/containers:/var/lib/docker/containers:ro,rslave
entrypoint: ./etc/promtail/entrypoint.sh
command: ["/usr/bin/promtail"]
environment:
Expand Down

0 comments on commit 4341c15

Please sign in to comment.