简体   繁体   中英

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

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?

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM