After DockerCon 2020, I enthusiastically downloaded Windows 10 2004 and tried to upgrade Docker Desktop to WSL 2 containers and experiment.
I had a few containers, in particular a couple of databases along with their data stored within volumes. Postgres and MS SQL Server in the case.
I wouldn't like to lose the data, though it's not critical. I used Docker volumes rather than OS mounts because I have repeatedly seen that using Windows mounts for database data storage is not recommended.
When I enabled WSL-2 for the first time, all my containers and volumes disappeared.
I'd like to ask if there is any (recommended) procedure or tool to mgirate Hyper-V based containers to WSL-2 along with their data.
Images can be easily redownloaded. How about container setup and data migration to WSL-2?
Of course I can do it manually. I can dump the volumes to my local drive (as a tar) using busybox
and restore using another busybox instance