F5F Stay Refreshed Hardware Desktop You need to reinstall Docker and then restore your Pi backup files.

You need to reinstall Docker and then restore your Pi backup files.

You need to reinstall Docker and then restore your Pi backup files.

X
xSpaceTea
Junior Member
5
10-08-2016, 06:04 AM
#1
I experienced an issue with my Raspberry Pi OS becoming corrupted. I performed a clean installation using the SD card. For backup, I saved all necessary files on my computer and organized them into a folder. I was running Docker and Portioner, and I have access to the var/lib/docker directory. I need guidance on restoring those files so I don’t lose my containers.
X
xSpaceTea
10-08-2016, 06:04 AM #1

I experienced an issue with my Raspberry Pi OS becoming corrupted. I performed a clean installation using the SD card. For backup, I saved all necessary files on my computer and organized them into a folder. I was running Docker and Portioner, and I have access to the var/lib/docker directory. I need guidance on restoring those files so I don’t lose my containers.

Y
YoungAriesArt
Member
192
10-09-2016, 06:28 AM
#2
You didn’t need to worry much—just reinstall Docker on Pi and transfer the necessary container files back. I’m not sure if just copying lib/docker is sufficient, but using the export command should work (though it doesn’t export volumes directly). It’s probably best to double-check before making any big changes.
Y
YoungAriesArt
10-09-2016, 06:28 AM #2

You didn’t need to worry much—just reinstall Docker on Pi and transfer the necessary container files back. I’m not sure if just copying lib/docker is sufficient, but using the export command should work (though it doesn’t export volumes directly). It’s probably best to double-check before making any big changes.

B
BatuTK
Junior Member
41
10-09-2016, 11:50 AM
#3
It's highly improbable to recover /var/lib/docker while keeping it functional. Best approach is to store any necessary folders outside Docker volumes, keeping user data in dedicated locations. Backing up these moved files ensures you can restore everything accurately if needed. Recreating containers with identical mounts will restore everything properly.
B
BatuTK
10-09-2016, 11:50 AM #3

It's highly improbable to recover /var/lib/docker while keeping it functional. Best approach is to store any necessary folders outside Docker volumes, keeping user data in dedicated locations. Backing up these moved files ensures you can restore everything accurately if needed. Recreating containers with identical mounts will restore everything properly.

L
levoyageur92
Posting Freak
807
10-09-2016, 10:58 PM
#4
The operating system was damaged, preventing boot and any operations. Could you try restoring from backups? Where can I locate the necessary containers for recovery?
L
levoyageur92
10-09-2016, 10:58 PM #4

The operating system was damaged, preventing boot and any operations. Could you try restoring from backups? Where can I locate the necessary containers for recovery?

C
Chloe_Gaming
Junior Member
2
10-10-2016, 02:47 AM
#5
You’ve restored the file and reinstalled Docker. To import those containers, you’ll need to upload the images or use a method like Docker Compose to define your services. Check your /var/lib/docker/containers directory for the container IDs and add them accordingly. If you’re using Docker Compose, create a `docker-compose.yml` file listing those containers.
C
Chloe_Gaming
10-10-2016, 02:47 AM #5

You’ve restored the file and reinstalled Docker. To import those containers, you’ll need to upload the images or use a method like Docker Compose to define your services. Check your /var/lib/docker/containers directory for the container IDs and add them accordingly. If you’re using Docker Compose, create a `docker-compose.yml` file listing those containers.