Closed vitalca closed 11 months ago
My fault. Softlinks are not working inside the container.
I added another volume binding, and it worked. Thank you!
docker run --rm \
-v /data/pgdata/upgrade:/var/lib/postgresql \
-v /data/pgdata:/data/pgdata \
tianon/postgres-upgrade:15-to-16 --link
I've prepared the required directory structure. The target dir is empty.
What am I doing wrong?
The second option works well:
But it doesn't support the
--link
argument because, from the container's point of view, they are two different file systems, and cross-dev links are impossible. I don't have enough space for an entire copy of PGDATA.