Repository name lowercase error

Hi,
I need to modify the prometheus.yml and I run the below command and it return a error: “docker: invalid reference format: repository name must be lowercase.”

docker run --name prometheus --rm -d -p 9090:9090 “$(pwd)/prometheus.yml”:etc/prometheus/prometheus.yml prom/prometheus

I tried many ways and I did`no have success. what’s wrong?

I’m using Mac.

Thanks

This is wrong:

This should be correct:

docker run --name prometheus --rm -d -p 9090:9090 -v "$(pwd)/prometheus.yml":/etc/prometheus/prometheus.yml prom/prometheus
1 Like

All right… thanks a lot.