this post was submitted on 08 Mar 2025
11 points (92.3% liked)
Linux
7072 readers
710 users here now
A community for everything relating to the GNU/Linux operating system
Also check out:
Original icon base courtesy of lewing@isc.tamu.edu and The GIMP
founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
Firsts look at what volumes are, then look at the Volume= quadlet option and remember that any data not part of a volume is going to be deleted.
Once you set up a volume you can just copy data inside of it from the host using the path you specified in the Volume and access it inside the container using the target path you specified in the volume.
If you only want to copy something once then you can use
podman cp
(though you will still need volumes if your container has any persistent data!)Thanks, I manage to successfully mount the volume on my host! Sadly, it seems like forgejo's usual version and docker/podman version are quite different, so there are issues arising from that. I guess I have to set things up from ground-up; At least I have a backup of the repositories now.