Random.Name Posted July 21 Share Posted July 21 So, for some reason I had to recreate my docker.img file, and I did that by also switching to folder instead of a docker image. now I just realised that one of my compose files used a volume instead of persistent storage in a folder… quite stupid but it happened. thankfully I did not delete the docker.img so I have a bit of hope to recover the data. is there a way to extract the contents of a docker volume from the docker.img file? Quote Link to comment
Kilrah Posted July 21 Share Posted July 21 Best way is probably to switch back to that image, then run the container in question and use docker cp to copy the data out. Quote Link to comment
Random.Name Posted July 22 Author Share Posted July 22 can io do that from a different system? run the docjer.img on my pc or smthing? or do ihave to take my server offline again? Quote Link to comment
Kilrah Posted July 22 Share Posted July 22 Should be possible, just everything in there is in folders named with nondescript hashes so you have to find the right one. You'll want to do that on a linux system and save to a linux filesystem to preserve the file ownership/permissions. Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.