uname -aLinux secscada 3.13.0-32-generic #57-Ubuntu SMP Tue Jul 15 03:51:08 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux
node_exporter --versionnode_exporter, version 0.17.0 (branch: HEAD, revision: f6f6194a436b9a63d0439abc585c76b19a206b21)
build user: root@322511e06ced
build date: 20181130-15:51:33
go version: go1.11.2
Ps: Node-exporter is running by docker
and Node-exporter is installed by
sudo docker pull prom/node-exporter
the version info is showed by
sudo docker run prom/node-exporter --version
I don't understand what command line flags is ?
yes
I am trying to run node-exporter as below:
sudo docker run \
--network="host" \
--pid="host" \
-v "/:/host:ro,rslave" \
prom/node-exporter \
--path.rootfs="/host"
node-exporter running
error info is as below
docker: Error response from daemon: linux mounts: Path / is mounted on / but it is not a shared or slave mount..
it seems casued by old version of docker .
and the solution is to run
sudo docker run \
--network="host" \
--pid="host" \
-v "/:/host:ro" \
prom/node-exporter \
--path.rootfs="/host"
Most helpful comment
it seems casued by old version of docker .
and the solution is to run