Cannot start service minio: failed to initialize logging driver:error creating loki logger

Viewed 10

I just started to explore MinIO and I'm trying to run the following command:

docker run \
  -p 9000:9000 \
  -p 9001:9001 \
  -e "MINIO_ROOT_USER=AKIAIOSFODNN7EXAMPLE" \
  -e "MINIO_ROOT_PASSWORD=wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY" \
  quay.io/minio/minio server /data --console-address ":9001"

but it gives me the following output:

docker: Error response from daemon: failed to initialize logging driver: error creating logger: error creating loki logger: loki: option loki-url is invalid parse "https://<user_id>:<password>@logs-us-west1.grafana.net/loki/api/v1/push": net/url: invalid userinfo.

How to solve this issue?

1 Answers

I think the problem is that the default logging driver for MinIO is Loki which you need to set up on your own if you want. You can overcome this issue by stating that you want to use a local logging driver. if you are using docker-compose file you can add

logging:
      driver: local

to the service minio

Related