mirror of
https://github.com/edu4rdshl/fly-to-podman.git
synced 2026-07-17 23:24:50 +00:00
(fix) detect DockerRootDir instead of assuming default (#1)
This commit is contained in:
parent
a1ff2774a7
commit
801a2a97a6
1 changed files with 2 additions and 2 deletions
|
|
@ -27,9 +27,9 @@ migrate_images() {
|
||||||
# Migrate volumes
|
# Migrate volumes
|
||||||
migrate_volumes() {
|
migrate_volumes() {
|
||||||
echo "Migrating Docker volumes to Podman..."
|
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')
|
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=""
|
RSYNC_OPTS=""
|
||||||
if [[ "$UID" -ne 0 ]]; then
|
if [[ "$UID" -ne 0 ]]; then
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue