Docker Community Forums

Share and learn in the Docker community.

Change Storage Driver and migrate Images

Hey everybody,

do anyone of you know how to migrate the Images after changing the storage driver? Actually I’m trying to upgrade the Version of docker from 1.12. to 1.13.1. after that I also want to change the storage driver from devicemapper to overlay2. I’ve tested the procedure and all images and containers were disappeared. When I switch back the all stuff is there. Is there a possibility to copy the images to the new storage driver or do i have to save everything and load back after changing?

I’m working on a Redhat Linux 7.4 with Docker version 1.12.6, build ec8512b/1.12.6.

Thanks for your help

I’m curious about this, as well - I’m using Docker CE and had originally started with the overlay2 storage driver, but want to move it to ZFS. I can forcibly set the storage driver, which allows docker to start, but the images and containers are not migrated to ZFS, they’re still in the overlay2 directory. Any good way to do this migration?