Create or resize file system of an image file to use as a loop device.
docker run --rm coderaiser/loop <file> <size>
docker run --rm -t -v "$PWD:/root" --name loop coderaiser/loop image.bin 100M
You can pass arguments to docker container via environment variables $FILE
and $SIZE
as well:
docker run --rm -t -v "$PWD:/root" --name loop -e "FILE=image.bin" -e "SIZE=100M" coderaiser/loop
MIT