mirror of
https://github.com/prometheus/node_exporter.git
synced 2024-12-24 21:24:30 -08:00
Make bind-mounts in Docker example read-only (#598)
This commit is contained in:
parent
30fb33f7a4
commit
0451c9c5f6
|
@ -127,9 +127,9 @@ options and bind-mounts:
|
|||
|
||||
```bash
|
||||
docker run -d -p 9100:9100 \
|
||||
-v "/proc:/host/proc" \
|
||||
-v "/sys:/host/sys" \
|
||||
-v "/:/rootfs" \
|
||||
-v "/proc:/host/proc:ro" \
|
||||
-v "/sys:/host/sys:ro" \
|
||||
-v "/:/rootfs:ro" \
|
||||
--net="host" \
|
||||
quay.io/prometheus/node-exporter \
|
||||
-collector.procfs /host/proc \
|
||||
|
|
Loading…
Reference in a new issue