I am attempting to migrate a docker container from a raspberry pi to a windows machine running docker desktop.
I’ve created a tarball, which should include the container and the volume data using this command:
docker run --rm --volumes-from mynodered -v $(pwd):/backup busybox tar cvfz /backup/backup.tar /mynodered/
I’ve moved that tarball over to my windows machine with SCP and left it on the Desktop for now.
I’ve created an empty “mynodered” container on the windows machine (otherwise I get an error that the container doesn’t exist).
Now I’m trying to update the “mynodered” container using the tarball on the windows machine with a command like this, but please help me fill in the CONTAINERPATH and recommend how I should replace $(pwd).
docker run --rm --volumes-from mynodered -v $(pwd):/backup busybox bash -c "cd CONTAINERPATH && tar xvf /backup/backup.tar --strip 1"
Do I need to move the tarball to a specific location in windows directory?
Please let me know what other info may be helpful. Thanks!