mirror of
https://github.com/edu4rdshl/fly-to-podman.git
synced 2026-07-17 23:24:50 +00:00
Update filename generation to replace ':' in image names
Fix: Replace colons and slashes in Docker image filenames during migration Replace both colons (:) and slashes (/) with underscores (_) in generated filenames to avoid invalid filename errors when migrating Docker images to Podman. This prevents "payload does not match" errors from podman load. - Changed tr '/' '_' to tr '/:' '_' in migrate_images() - Ensures compatibility with images containing version tags (e.g., ghost:latest) - Resolves issue with multi-part repository names (e.g., linuxserver/wireguard)
This commit is contained in:
parent
801a2a97a6
commit
e4dff522fb
1 changed files with 1 additions and 1 deletions
|
|
@ -12,7 +12,7 @@ migrate_images() {
|
|||
fi
|
||||
|
||||
# Replace slashes in repository names with underscores for filenames
|
||||
filename=$(echo "$image" | tr '/' '_').tar
|
||||
filename=$(echo "$image" | tr '/:' '_').tar
|
||||
|
||||
echo "Exporting $image..."
|
||||
docker save -o "$filename" "$image" &&
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue