We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Copied from: grafana/grafana-docker#181
docker-compose.yml:
docker-compose.yml
version: '3.5' services: grafana: image: grafana/grafana:5.2.1 volumes: - "./grafana/:/etc/grafana/provisioning" - "grafana_data:/var/lib/grafana" environment: - "GF_AUTH_ANONYMOUS_ENABLED=true" - "GF_USERS_ALLOW_SIGN_UP=false" ports: - "3000:3000" networks: - monitoring volumes: grafana_data: {} networks: monitoring: driver: overlay
$ docker stack deploy --prune -c docker-compose.yml metrics
$ docker volume ls DRIVER VOLUME NAME local metrics_grafana_data $ docker inspect metrics_grafana_data [ { "CreatedAt": "2018-07-24T14:28:58+03:00", "Driver": "local", "Labels": { "com.docker.stack.namespace": "metrics" }, "Mountpoint": "/var/lib/docker/volumes/metrics_grafana_data/_data", "Name": "metrics_grafana_data", "Options": null, "Scope": "local" } ]
$ ls -l /var/lib/docker/volumes drwxr-xr-x 3 root root 4096 Jul 23 17:57 metrics_grafana_data
# ls -l /var/lib/grafana total 412 -rw-r--r-- 1 grafana grafana 409600 Jul 24 11:28 grafana.db drwxrwxrwx 7 grafana grafana 4096 Jul 23 14:57 plugins drwx------ 3 grafana grafana 4096 Jul 24 06:57 sessions
Server Version: 18.03.1-ce Storage Driver: overlay2 Backing Filesystem: extfs Supports d_type: true Native Overlay Diff: true Logging Driver: json-file Cgroup Driver: cgroupfs Plugins: Volume: local Network: bridge host macvlan null overlay Log: awslogs fluentd gcplogs gelf journald json-file logentries splunk syslog Swarm: active NodeID: hlnrrxvpqhcrc2lxdz86ibiuq Is Manager: true ClusterID: yr0dl4x3fka3ba2f0q77i7bi9 Managers: 1 Nodes: 1 Orchestration: Task History Retention Limit: 5 ... Security Options: apparmor seccomp Profile: default Kernel Version: 4.15.0-23-generic Operating System: Ubuntu 18.04 LTS OSType: linux Architecture: x86_64 ... Docker Root Dir: /var/lib/docker Debug Mode (client): false Debug Mode (server): false ... Labels: Experimental: false Insecure Registries: 127.0.0.0/8 Live Restore Enabled: false
The text was updated successfully, but these errors were encountered:
Potentially related to #13187
Sorry, something went wrong.
I had the same problem.
I created in </ home / user / grafana>.
The solution was to delete and set the volume in docker-compose.yml, doing the following: ... volumes:
Closing this bug report as a lot of changes have been made to the docker image since 2018 and seems no longer relevant.
No branches or pull requests
Copied from: grafana/grafana-docker#181
Given Docker compose file
docker-compose.yml
:Run above docker compose:
Fail to create grafana playlist to persist data:
Inspect used volume:
List docker host rights on named volumes:
List grafana container volume rights:
Docker version:
The text was updated successfully, but these errors were encountered: