cAdvisor and ElasticSearch

Hi, iam trying run a cAdvisor image sending the metrics to ElasticSearch service in the Cloud using the command listed in cAdvisor docs:

sudo docker run
–volume=/:/rootfs:ro
–volume=/var/run:/var/run:ro
–volume=/sys:/sys:ro
–volume=/var/lib/docker/:/var/lib/docker:ro
–volume=/dev/disk/:/dev/disk:ro
-storage_driver=elasticsearch
-storage_driver_es_host=“https://fa2475fbe0d04752823a0600c0ea4ad6.sa-east-1.aws.found.io:9243
–publish=8080:8080
–detach=true
–name=cadtest
google/cadvisor:latest

however the following error message appears:

“unknown shorthand flag: ‘s’ in -storage_driver=elasticsearch
See ‘docker run --help’.”

Docker version 18.06.1-ce
Amazon Linux 2

Thanks!

$ docker run [OPTIONS] IMAGE[:TAG|@DIGEST] [COMMAND] [ARG...]

The arguments storage_driver and -storage_driver_es_host are not docker runarguments, they are container arguments and need to be used after the image:tag

Thanks for the reply Metin!
Now Works!

:slight_smile: