windowsdockerprometheusprometheus-node-exporter

docker: Error response from daemon: path / is mounted on / but it is not a shared or slave mount


I am trying to run node-exporter using docker run -d --net="host" --pid="host" -v "/:/host:ro,rslave" quay.io/prometheus/node-exporter:latest --path.rootfs=/host command.

Source of this command is : https://github.com/prometheus/node_exporter#docker

Using the aforementioned command image is downloaded successfully.
Though I am getting a error response as :
docker: Error response from daemon: path / is mounted on / but it is not a shared or slave mount. enter image description here

My system config :
Windows 10,
Docker version : v20.10.17


Solution

  • So I was using the Linux exporter in the windows.

    Learning:

    Link for Window exporter : https://github.com/prometheus-community/windows_exporter

    Thanks to @rick-rachow for your valuable comment.