17 lines
279 B
Markdown
17 lines
279 B
Markdown
|
> 本文作者:丁辉
|
||
|
|
||
|
# Docker部署Node-exporter
|
||
|
|
||
|
```bash
|
||
|
docker run -d --restart=always \
|
||
|
-p 9100:9100 \
|
||
|
-v "/proc:/host/proc:ro" \
|
||
|
-v "/sys:/host/sys:ro" \
|
||
|
-v "/:/rootfs:ro" \
|
||
|
--net="host" \
|
||
|
--restart=always \
|
||
|
--name node-exporter \
|
||
|
prom/node-exporter
|
||
|
```
|
||
|
|