node_exporter: Can't run node_exporter docker on MacOs
I am using below command to run a node_export docker container on Mac.
docker run -d -p 9100:9100 \
-v "/proc:/host/proc:ro" \
-v "/sys:/host/sys:ro" \
-v "/:/rootfs:ro" \
--net="host" \
quay.io/prometheus/node-exporter \
-collector.procfs /host/proc \
-collector.sysfs /host/sys \
-collector.filesystem.ignored-mount-points "^/(sys|proc|dev|host|etc)($|/)"
The container can be run but the port number 9100 is not listenning. Is there anything need to be configured on Mac? As I know, Mac doesn’t have /proc directory.
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Comments: 19 (8 by maintainers)
Here is the command that worked for me on Docker for Mac:
promis a separately created overlay network.@arun-gupta Thanks this has helped a ton!