All Docker images and containers disappeared

Creating a bug report/issue

I have searched the existing open and closed issues

Required Information

  • DietPi version | cat /boot/dietpi/.version
    G_DIETPI_VERSION_CORE=8
    G_DIETPI_VERSION_SUB=25
    G_DIETPI_VERSION_RC=1
    G_GITBRANCH=‘master’
    G_GITOWNER=‘MichaIng’

  • Distro version | echo $G_DISTRO_NAME $G_RASPBIAN
    Bullseye

  • Kernel version | uname -a
    Linux [NAME] 5.10.0-26-amd64 #1 SMP Debian 5.10.197-1 (2023-09-29) x86_64 GNU/Linux

  • Architecture | dpkg --print-architecture
    amd64

  • SBC model | echo $G_HW_MODEL_NAME or (EG: RPi3)
    NATIVE PC x86-64

Steps to reproduce

  1. do updates with “sudo apt-get update” followed by “sudo apt-get upgrade” (I do this 3 times a week most of the time)
  2. sudo apt autoremove
  3. Restart the system
  4. docker ps and docker ls with only empty table returning

Expected behaviour

  • System should reboot as usual and start docker (which it does) but also start the containers in accordance with their policies (and not drop them)

Actual behaviour

  • system is rebooting fine but all containers and images appear to be missing

Extra details

  • looking at my disk space it seems like everything is still saved somewhere.
  • if I remember correctly the updates I did were only for netdata

did you already tried to start your docker container manually? And what about system logs?

Well I tried to start a container but I do not want all my data to be lost so I did not create a new container and for now I am unsure how I would get my old containers back. Given that I do most of my stuff in portainer (which is not running due to the issue) I cannot get the exact same command to start my containers thus risking data loss.
What command should I run to give you the exact logs you need?

Update, I think it was default but the directory mnt/dietpi_userdata is missing (or mnt/dietpi-userdata)
Does someone know why that would be?

Did you moved user data to an external disk?

I did not move anything and the whole directory was indeed deleted. I had a backup and was able to restore most of my data

Hmm strange, a regular apt update will not remove directions like our user data.

This topic was automatically closed 178 days after the last reply. New replies are no longer allowed.