When decreasing the size of the Docker disk image, Docker for Mac gives a warning, that it will delete all images, containers and volumes.
I don't mind losing the images and containers, but is there a way to preserve the volumes? Is there a way to temporarily "copy" the volumes from the Docker disk image to another part of the host file system, shrink the disk image, than copy the volumes back to it?