Docker Community Forums

Share and learn in the Docker community.

Update docker delete data from container

Today my Docker had been updated to the Docker Desktop.
After that, I have lost all my data from the one of the container - grafana.
Is there any way to return my data back?
Probably, my main problem is that I did not specify volume for grafana, but the fact is that I was stopping and re-startering docker compose and my data on grafana’s dashboard was saving. After the upgrade all this data was lost and I am not able to return back a big piece of my work.

My docker-compose:

 version: '3'
 services:
   influxdb:
     image: quay.io/influxdb/influxdb:v2.0.4
     container_name: influxdb
     volumes:
       - ./influxdbv2:/root/.influxdbv2
     ports:
       - "8086:8086"
   influxdb_cli:
     links:
       - influxdb
     image: quay.io/influxdb/influxdb:v2.0.4
     entrypoint: influx setup --bucket **** -t **** -o **** --username=**** --password=**** --host=**** -f
     restart: on-failure:20
     depends_on:
       - influxdb
   telegraf:
     image: telegraf
     container_name: telegraf
     links:
       - influxdb
     volumes:
       - ./telegraf.conf:/etc/telegraf/telegraf.conf
     ports:
       - "2003:2003"
     depends_on:
       - influxdb_cli

   grafana:
     image: grafana/grafana:latest
     ports:
       - "3000:3000"
     depends_on:
       - telegraf
 volumes:
   influxdbv2: