creat a directory which blow root authority
sudo mkdir grafana_data
check
creat a compose file
sudo nano docker-compose.yml
write config
version: '3'
services:
grafana:
image: grafana/grafana:latest
container_name: grafana
restart: always
ports:
- 3000:3000
volumes:
- /home/zhaoyuqi/grafana_data:/var/lib/grafana
run this config file
But I found the image failed to run
After checking the log, it is found that the file permission error causes the operation failure
Modifying folder Permissions
`sudo chown -R 472:472 /home/zhaoyuqi/grafana_data`