From 801a2a97a6af0c95d7e50520a53e25591b9c9a36 Mon Sep 17 00:00:00 2001 From: Ben Darwin Date: Wed, 2 Apr 2025 17:24:02 -0400 Subject: [PATCH] (fix) detect DockerRootDir instead of assuming default (#1) --- fly-to-podman.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fly-to-podman.sh b/fly-to-podman.sh index 424ec88..e969fe7 100644 --- a/fly-to-podman.sh +++ b/fly-to-podman.sh @@ -27,9 +27,9 @@ migrate_images() { # Migrate volumes migrate_volumes() { echo "Migrating Docker volumes to Podman..." - # Get the path to the Podman volumes directory + # Get the path to the Podman volumes directory (and guess at the Docker volumes directory) PODMAN_VOLUMES_PATH=$(podman info --format json | jq -r '.store.volumePath') - DOCKER_VOLUMES_PATH="/var/lib/docker/volumes" + DOCKER_VOLUMES_PATH=$(docker system info -fjson | jq -r '.DockerRootDir')/volumes RSYNC_OPTS="" if [[ "$UID" -ne 0 ]]; then