メインコンテンツへスキップ

Grafana docker コンテナーの起動時のPermission deniedエラー

Views:
Visibility:
Public
Votes:
0
Category:
ontap-9
Specialty:
nas
Last Updated:

環境

  • ONTAP 9
  • NFS
  • Dockerコンテナ

問題

  • Linuxクライアントでunix volumeをマウントしようとし、containerを起動すると、permission deniedが報告されます。 
root@host1:/home/rdapiqw/shared_source/apisix_sr_20250722# docker logs -f apisix_grafana
GF_PATHS_DATA='/var/lib/grafana' is not writable.
You may have issues with file permissions, more information here: http://docs.grafana.org/installation/docker/#migrate-to-v51-or-later
mkdir: can't create directory '/var/lib/grafana/plugins': Permission denied
GF_PATHS_DATA='/var/lib/grafana' is not writable.

 
  • Docker Compose設定

grafana:

  image: grafana/grafana:${GRAFANA_VERSION}
  container_name: apisix_grafana
  ports:
   - "3000:3000"
  environment:
   - GF_SECURITY_ADMIN_USER=${GRAFANA_USER}
   - GF_SECURITY_ADMIN_PASSWORD=${GRAFANA_PASSWORD}
  volumes:
   - /home/rdapiqw/shared source/grafana-storage:/var/lib/grafana:rw
   - ./grafana/provisioning:/etc/grafana/provisioning
  depends_on:
   - prometheus
   - loki
  restart: unless-stopped

  • ボリュームのエクスポートポリシールール設定に問題はありません。 

Sign in to view the entire content of this KB article.

New to NetApp?

Learn more about our award-winning Support

NetApp provides no representations or warranties regarding the accuracy or reliability or serviceability of any information or recommendations provided in this publication or with respect to any results that may be obtained by the use of the information or observance of any recommendations provided herein. The information in this document is distributed AS IS and the use of this information or the implementation of any recommendations or techniques herein is a customer's responsibility and depends on the customer's ability to evaluate and integrate them into the customer's operational environment. This document and the information contained herein may be used solely in connection with the NetApp products discussed in this document.