joe-elliott / cert-exporter

A Prometheus exporter that publishes cert expirations on disk and in Kubernetes secrets
Apache License 2.0
313 stars 88 forks source link

Docker run issue #89

Open Reka90 opened 3 years ago

Reka90 commented 3 years ago

I pulled the image (docker pull joeelliott/cert-exporter).. but when I try to run following docker run command it give following error. Would you please provide the docker run command :

docker run -d -p 9120:9117 joeelliott/cert-exporter --logtostderr=true --include-glob /etc/ssl/certs/*.pem

18b06542338fe91a9a9732c75405cc7ff81e6d0ec5425404fb9ba318d8f22028 docker: Error response from daemon: OCI runtime create failed: container_linux.go:380: starting container process caused: exec: "--logtostderr=true": executable file not found in $PATH: unknown.

faust64 commented 2 years ago

You should use:

docker run -d -p 9120:9117 joeelliott/cert-exporter ./app -logtostderr=true -include-cert-glob "/etc/ssl/certs/*.pem"
vladorf commented 4 months ago

You should use:

docker run -d -p 9120:9117 joeelliott/cert-exporter ./app -logtostderr=true -include-cert-glob "/etc/ssl/certs/*.pem"

I suppose you can, but is there any reason for not using entrypoint? I think that's what @Reka90 meant when creating this issue.

Anywho, thanks for this tool!