Rancher Desktop Migration

Export

mkdir -p /tmp/docker/; docker image ls -q | xargs -I {} docker image save {} -o /tmp/docker/{}.tar

Save image information:

docker image ls > ~/Downloads/docker_images.log

Now quit Docker, launch Rancher Desktop (docker images should show up as empty). The program ~/.rd/bin/docker can talk to the docker socket regardless of which back-end is running, just verify it is in your $PATH.

Then import your images:

ls /tmp/docker/*.tar | xargs -I {} docker image load -i {}

But we find the image names have disappeared and want to restore them from our earlier printout.

Testing script (remove echo when ready):

cat ~/Downloads/docker_images.log | tail -n +2 | awk '{print $3,$1,$2}' | xargs -n 3 sh -c 'echo docker tag "$0" "$1":"$2"'

And