Docker volume mount of .img file
I was looking for a simple way to archive a large set of small files and not letting size go crazy. If this works, I would just copy a single file as an archive vs spending hours sync'ing the files to a backup location.
From my research, my issue has something to do with the /dev/loop0 but from what I've seen they all say mount it first, then use it. Several try to create the loop in the container, but then you have to create the /dev entries. I'd rather leave that out of the container and let the host deal with it. I'm trying to map a volume in my docker-compose.yaml, but it never appears in the container... On the Host Code:
truncate -s 5G /srv/myimage.img (I'm using version: '2' but I can use any version if needed.) Code:
app: Code:
docker-compose exec app bash |
All times are GMT -5. The time now is 02:21 AM. |