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
|
```bash
|
||||||
docker run -d -p 9100:9100 \
|
docker run -d -p 9100:9100 \
|
||||||
-v "/proc:/host/proc" \
|
-v "/proc:/host/proc:ro" \
|
||||||
-v "/sys:/host/sys" \
|
-v "/sys:/host/sys:ro" \
|
||||||
-v "/:/rootfs" \
|
-v "/:/rootfs:ro" \
|
||||||
--net="host" \
|
--net="host" \
|
||||||
quay.io/prometheus/node-exporter \
|
quay.io/prometheus/node-exporter \
|
||||||
-collector.procfs /host/proc \
|
-collector.procfs /host/proc \
|
||||||
|
|
Loading…
Reference in New Issue