Merge pull request #1372 from infosiftr/more-graceful-error
Remove intentionally-breaking "data" symlink and add better detection
This commit is contained in:
commit
23987751b6
|
|
@ -168,8 +168,14 @@ docker_error_old_databases() {
|
||||||
Counter to that, there appears to be PostgreSQL data in:
|
Counter to that, there appears to be PostgreSQL data in:
|
||||||
${OLD_DATABASES[*]}
|
${OLD_DATABASES[*]}
|
||||||
|
|
||||||
This is usually the result of upgrading the Docker image without upgrading
|
This is usually the result of upgrading the Docker image without
|
||||||
the underlying database using "pg_upgrade" (which requires both versions).
|
upgrading the underlying database using "pg_upgrade" (which requires both
|
||||||
|
versions).
|
||||||
|
|
||||||
|
The suggested container configuration for 18+ is to place a single mount
|
||||||
|
at /var/lib/postgresql which will then place PostgreSQL data in a
|
||||||
|
subdirectory, allowing usage of "pg_upgrade --link" without mount point
|
||||||
|
boundary issues.
|
||||||
|
|
||||||
See https://github.com/docker-library/postgres/issues/37 for a (long)
|
See https://github.com/docker-library/postgres/issues/37 for a (long)
|
||||||
discussion around this process, and suggestions for how to do so.
|
discussion around this process, and suggestions for how to do so.
|
||||||
|
|
@ -264,6 +270,9 @@ docker_setup_env() {
|
||||||
OLD_DATABASES+=( "$d" )
|
OLD_DATABASES+=( "$d" )
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
if [ "${#OLD_DATABASES[@]}" -eq 0 ] && [ "$PG_MAJOR" -ge 18 ] && mountpoint -q /var/lib/postgresql/data; then
|
||||||
|
OLD_DATABASES+=( '/var/lib/postgresql/data (unused mount/volume)' )
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -168,8 +168,14 @@ docker_error_old_databases() {
|
||||||
Counter to that, there appears to be PostgreSQL data in:
|
Counter to that, there appears to be PostgreSQL data in:
|
||||||
${OLD_DATABASES[*]}
|
${OLD_DATABASES[*]}
|
||||||
|
|
||||||
This is usually the result of upgrading the Docker image without upgrading
|
This is usually the result of upgrading the Docker image without
|
||||||
the underlying database using "pg_upgrade" (which requires both versions).
|
upgrading the underlying database using "pg_upgrade" (which requires both
|
||||||
|
versions).
|
||||||
|
|
||||||
|
The suggested container configuration for 18+ is to place a single mount
|
||||||
|
at /var/lib/postgresql which will then place PostgreSQL data in a
|
||||||
|
subdirectory, allowing usage of "pg_upgrade --link" without mount point
|
||||||
|
boundary issues.
|
||||||
|
|
||||||
See https://github.com/docker-library/postgres/issues/37 for a (long)
|
See https://github.com/docker-library/postgres/issues/37 for a (long)
|
||||||
discussion around this process, and suggestions for how to do so.
|
discussion around this process, and suggestions for how to do so.
|
||||||
|
|
@ -264,6 +270,9 @@ docker_setup_env() {
|
||||||
OLD_DATABASES+=( "$d" )
|
OLD_DATABASES+=( "$d" )
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
if [ "${#OLD_DATABASES[@]}" -eq 0 ] && [ "$PG_MAJOR" -ge 18 ] && mountpoint -q /var/lib/postgresql/data; then
|
||||||
|
OLD_DATABASES+=( '/var/lib/postgresql/data (unused mount/volume)' )
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -168,8 +168,14 @@ docker_error_old_databases() {
|
||||||
Counter to that, there appears to be PostgreSQL data in:
|
Counter to that, there appears to be PostgreSQL data in:
|
||||||
${OLD_DATABASES[*]}
|
${OLD_DATABASES[*]}
|
||||||
|
|
||||||
This is usually the result of upgrading the Docker image without upgrading
|
This is usually the result of upgrading the Docker image without
|
||||||
the underlying database using "pg_upgrade" (which requires both versions).
|
upgrading the underlying database using "pg_upgrade" (which requires both
|
||||||
|
versions).
|
||||||
|
|
||||||
|
The suggested container configuration for 18+ is to place a single mount
|
||||||
|
at /var/lib/postgresql which will then place PostgreSQL data in a
|
||||||
|
subdirectory, allowing usage of "pg_upgrade --link" without mount point
|
||||||
|
boundary issues.
|
||||||
|
|
||||||
See https://github.com/docker-library/postgres/issues/37 for a (long)
|
See https://github.com/docker-library/postgres/issues/37 for a (long)
|
||||||
discussion around this process, and suggestions for how to do so.
|
discussion around this process, and suggestions for how to do so.
|
||||||
|
|
@ -264,6 +270,9 @@ docker_setup_env() {
|
||||||
OLD_DATABASES+=( "$d" )
|
OLD_DATABASES+=( "$d" )
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
if [ "${#OLD_DATABASES[@]}" -eq 0 ] && [ "$PG_MAJOR" -ge 18 ] && mountpoint -q /var/lib/postgresql/data; then
|
||||||
|
OLD_DATABASES+=( '/var/lib/postgresql/data (unused mount/volume)' )
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -168,8 +168,14 @@ docker_error_old_databases() {
|
||||||
Counter to that, there appears to be PostgreSQL data in:
|
Counter to that, there appears to be PostgreSQL data in:
|
||||||
${OLD_DATABASES[*]}
|
${OLD_DATABASES[*]}
|
||||||
|
|
||||||
This is usually the result of upgrading the Docker image without upgrading
|
This is usually the result of upgrading the Docker image without
|
||||||
the underlying database using "pg_upgrade" (which requires both versions).
|
upgrading the underlying database using "pg_upgrade" (which requires both
|
||||||
|
versions).
|
||||||
|
|
||||||
|
The suggested container configuration for 18+ is to place a single mount
|
||||||
|
at /var/lib/postgresql which will then place PostgreSQL data in a
|
||||||
|
subdirectory, allowing usage of "pg_upgrade --link" without mount point
|
||||||
|
boundary issues.
|
||||||
|
|
||||||
See https://github.com/docker-library/postgres/issues/37 for a (long)
|
See https://github.com/docker-library/postgres/issues/37 for a (long)
|
||||||
discussion around this process, and suggestions for how to do so.
|
discussion around this process, and suggestions for how to do so.
|
||||||
|
|
@ -264,6 +270,9 @@ docker_setup_env() {
|
||||||
OLD_DATABASES+=( "$d" )
|
OLD_DATABASES+=( "$d" )
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
if [ "${#OLD_DATABASES[@]}" -eq 0 ] && [ "$PG_MAJOR" -ge 18 ] && mountpoint -q /var/lib/postgresql/data; then
|
||||||
|
OLD_DATABASES+=( '/var/lib/postgresql/data (unused mount/volume)' )
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -168,8 +168,14 @@ docker_error_old_databases() {
|
||||||
Counter to that, there appears to be PostgreSQL data in:
|
Counter to that, there appears to be PostgreSQL data in:
|
||||||
${OLD_DATABASES[*]}
|
${OLD_DATABASES[*]}
|
||||||
|
|
||||||
This is usually the result of upgrading the Docker image without upgrading
|
This is usually the result of upgrading the Docker image without
|
||||||
the underlying database using "pg_upgrade" (which requires both versions).
|
upgrading the underlying database using "pg_upgrade" (which requires both
|
||||||
|
versions).
|
||||||
|
|
||||||
|
The suggested container configuration for 18+ is to place a single mount
|
||||||
|
at /var/lib/postgresql which will then place PostgreSQL data in a
|
||||||
|
subdirectory, allowing usage of "pg_upgrade --link" without mount point
|
||||||
|
boundary issues.
|
||||||
|
|
||||||
See https://github.com/docker-library/postgres/issues/37 for a (long)
|
See https://github.com/docker-library/postgres/issues/37 for a (long)
|
||||||
discussion around this process, and suggestions for how to do so.
|
discussion around this process, and suggestions for how to do so.
|
||||||
|
|
@ -264,6 +270,9 @@ docker_setup_env() {
|
||||||
OLD_DATABASES+=( "$d" )
|
OLD_DATABASES+=( "$d" )
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
if [ "${#OLD_DATABASES[@]}" -eq 0 ] && [ "$PG_MAJOR" -ge 18 ] && mountpoint -q /var/lib/postgresql/data; then
|
||||||
|
OLD_DATABASES+=( '/var/lib/postgresql/data (unused mount/volume)' )
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -168,8 +168,14 @@ docker_error_old_databases() {
|
||||||
Counter to that, there appears to be PostgreSQL data in:
|
Counter to that, there appears to be PostgreSQL data in:
|
||||||
${OLD_DATABASES[*]}
|
${OLD_DATABASES[*]}
|
||||||
|
|
||||||
This is usually the result of upgrading the Docker image without upgrading
|
This is usually the result of upgrading the Docker image without
|
||||||
the underlying database using "pg_upgrade" (which requires both versions).
|
upgrading the underlying database using "pg_upgrade" (which requires both
|
||||||
|
versions).
|
||||||
|
|
||||||
|
The suggested container configuration for 18+ is to place a single mount
|
||||||
|
at /var/lib/postgresql which will then place PostgreSQL data in a
|
||||||
|
subdirectory, allowing usage of "pg_upgrade --link" without mount point
|
||||||
|
boundary issues.
|
||||||
|
|
||||||
See https://github.com/docker-library/postgres/issues/37 for a (long)
|
See https://github.com/docker-library/postgres/issues/37 for a (long)
|
||||||
discussion around this process, and suggestions for how to do so.
|
discussion around this process, and suggestions for how to do so.
|
||||||
|
|
@ -264,6 +270,9 @@ docker_setup_env() {
|
||||||
OLD_DATABASES+=( "$d" )
|
OLD_DATABASES+=( "$d" )
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
if [ "${#OLD_DATABASES[@]}" -eq 0 ] && [ "$PG_MAJOR" -ge 18 ] && mountpoint -q /var/lib/postgresql/data; then
|
||||||
|
OLD_DATABASES+=( '/var/lib/postgresql/data (unused mount/volume)' )
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -168,8 +168,14 @@ docker_error_old_databases() {
|
||||||
Counter to that, there appears to be PostgreSQL data in:
|
Counter to that, there appears to be PostgreSQL data in:
|
||||||
${OLD_DATABASES[*]}
|
${OLD_DATABASES[*]}
|
||||||
|
|
||||||
This is usually the result of upgrading the Docker image without upgrading
|
This is usually the result of upgrading the Docker image without
|
||||||
the underlying database using "pg_upgrade" (which requires both versions).
|
upgrading the underlying database using "pg_upgrade" (which requires both
|
||||||
|
versions).
|
||||||
|
|
||||||
|
The suggested container configuration for 18+ is to place a single mount
|
||||||
|
at /var/lib/postgresql which will then place PostgreSQL data in a
|
||||||
|
subdirectory, allowing usage of "pg_upgrade --link" without mount point
|
||||||
|
boundary issues.
|
||||||
|
|
||||||
See https://github.com/docker-library/postgres/issues/37 for a (long)
|
See https://github.com/docker-library/postgres/issues/37 for a (long)
|
||||||
discussion around this process, and suggestions for how to do so.
|
discussion around this process, and suggestions for how to do so.
|
||||||
|
|
@ -264,6 +270,9 @@ docker_setup_env() {
|
||||||
OLD_DATABASES+=( "$d" )
|
OLD_DATABASES+=( "$d" )
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
if [ "${#OLD_DATABASES[@]}" -eq 0 ] && [ "$PG_MAJOR" -ge 18 ] && mountpoint -q /var/lib/postgresql/data; then
|
||||||
|
OLD_DATABASES+=( '/var/lib/postgresql/data (unused mount/volume)' )
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -168,8 +168,14 @@ docker_error_old_databases() {
|
||||||
Counter to that, there appears to be PostgreSQL data in:
|
Counter to that, there appears to be PostgreSQL data in:
|
||||||
${OLD_DATABASES[*]}
|
${OLD_DATABASES[*]}
|
||||||
|
|
||||||
This is usually the result of upgrading the Docker image without upgrading
|
This is usually the result of upgrading the Docker image without
|
||||||
the underlying database using "pg_upgrade" (which requires both versions).
|
upgrading the underlying database using "pg_upgrade" (which requires both
|
||||||
|
versions).
|
||||||
|
|
||||||
|
The suggested container configuration for 18+ is to place a single mount
|
||||||
|
at /var/lib/postgresql which will then place PostgreSQL data in a
|
||||||
|
subdirectory, allowing usage of "pg_upgrade --link" without mount point
|
||||||
|
boundary issues.
|
||||||
|
|
||||||
See https://github.com/docker-library/postgres/issues/37 for a (long)
|
See https://github.com/docker-library/postgres/issues/37 for a (long)
|
||||||
discussion around this process, and suggestions for how to do so.
|
discussion around this process, and suggestions for how to do so.
|
||||||
|
|
@ -264,6 +270,9 @@ docker_setup_env() {
|
||||||
OLD_DATABASES+=( "$d" )
|
OLD_DATABASES+=( "$d" )
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
if [ "${#OLD_DATABASES[@]}" -eq 0 ] && [ "$PG_MAJOR" -ge 18 ] && mountpoint -q /var/lib/postgresql/data; then
|
||||||
|
OLD_DATABASES+=( '/var/lib/postgresql/data (unused mount/volume)' )
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -168,8 +168,14 @@ docker_error_old_databases() {
|
||||||
Counter to that, there appears to be PostgreSQL data in:
|
Counter to that, there appears to be PostgreSQL data in:
|
||||||
${OLD_DATABASES[*]}
|
${OLD_DATABASES[*]}
|
||||||
|
|
||||||
This is usually the result of upgrading the Docker image without upgrading
|
This is usually the result of upgrading the Docker image without
|
||||||
the underlying database using "pg_upgrade" (which requires both versions).
|
upgrading the underlying database using "pg_upgrade" (which requires both
|
||||||
|
versions).
|
||||||
|
|
||||||
|
The suggested container configuration for 18+ is to place a single mount
|
||||||
|
at /var/lib/postgresql which will then place PostgreSQL data in a
|
||||||
|
subdirectory, allowing usage of "pg_upgrade --link" without mount point
|
||||||
|
boundary issues.
|
||||||
|
|
||||||
See https://github.com/docker-library/postgres/issues/37 for a (long)
|
See https://github.com/docker-library/postgres/issues/37 for a (long)
|
||||||
discussion around this process, and suggestions for how to do so.
|
discussion around this process, and suggestions for how to do so.
|
||||||
|
|
@ -264,6 +270,9 @@ docker_setup_env() {
|
||||||
OLD_DATABASES+=( "$d" )
|
OLD_DATABASES+=( "$d" )
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
if [ "${#OLD_DATABASES[@]}" -eq 0 ] && [ "$PG_MAJOR" -ge 18 ] && mountpoint -q /var/lib/postgresql/data; then
|
||||||
|
OLD_DATABASES+=( '/var/lib/postgresql/data (unused mount/volume)' )
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -168,8 +168,14 @@ docker_error_old_databases() {
|
||||||
Counter to that, there appears to be PostgreSQL data in:
|
Counter to that, there appears to be PostgreSQL data in:
|
||||||
${OLD_DATABASES[*]}
|
${OLD_DATABASES[*]}
|
||||||
|
|
||||||
This is usually the result of upgrading the Docker image without upgrading
|
This is usually the result of upgrading the Docker image without
|
||||||
the underlying database using "pg_upgrade" (which requires both versions).
|
upgrading the underlying database using "pg_upgrade" (which requires both
|
||||||
|
versions).
|
||||||
|
|
||||||
|
The suggested container configuration for 18+ is to place a single mount
|
||||||
|
at /var/lib/postgresql which will then place PostgreSQL data in a
|
||||||
|
subdirectory, allowing usage of "pg_upgrade --link" without mount point
|
||||||
|
boundary issues.
|
||||||
|
|
||||||
See https://github.com/docker-library/postgres/issues/37 for a (long)
|
See https://github.com/docker-library/postgres/issues/37 for a (long)
|
||||||
discussion around this process, and suggestions for how to do so.
|
discussion around this process, and suggestions for how to do so.
|
||||||
|
|
@ -264,6 +270,9 @@ docker_setup_env() {
|
||||||
OLD_DATABASES+=( "$d" )
|
OLD_DATABASES+=( "$d" )
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
if [ "${#OLD_DATABASES[@]}" -eq 0 ] && [ "$PG_MAJOR" -ge 18 ] && mountpoint -q /var/lib/postgresql/data; then
|
||||||
|
OLD_DATABASES+=( '/var/lib/postgresql/data (unused mount/volume)' )
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -168,8 +168,14 @@ docker_error_old_databases() {
|
||||||
Counter to that, there appears to be PostgreSQL data in:
|
Counter to that, there appears to be PostgreSQL data in:
|
||||||
${OLD_DATABASES[*]}
|
${OLD_DATABASES[*]}
|
||||||
|
|
||||||
This is usually the result of upgrading the Docker image without upgrading
|
This is usually the result of upgrading the Docker image without
|
||||||
the underlying database using "pg_upgrade" (which requires both versions).
|
upgrading the underlying database using "pg_upgrade" (which requires both
|
||||||
|
versions).
|
||||||
|
|
||||||
|
The suggested container configuration for 18+ is to place a single mount
|
||||||
|
at /var/lib/postgresql which will then place PostgreSQL data in a
|
||||||
|
subdirectory, allowing usage of "pg_upgrade --link" without mount point
|
||||||
|
boundary issues.
|
||||||
|
|
||||||
See https://github.com/docker-library/postgres/issues/37 for a (long)
|
See https://github.com/docker-library/postgres/issues/37 for a (long)
|
||||||
discussion around this process, and suggestions for how to do so.
|
discussion around this process, and suggestions for how to do so.
|
||||||
|
|
@ -264,6 +270,9 @@ docker_setup_env() {
|
||||||
OLD_DATABASES+=( "$d" )
|
OLD_DATABASES+=( "$d" )
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
if [ "${#OLD_DATABASES[@]}" -eq 0 ] && [ "$PG_MAJOR" -ge 18 ] && mountpoint -q /var/lib/postgresql/data; then
|
||||||
|
OLD_DATABASES+=( '/var/lib/postgresql/data (unused mount/volume)' )
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -168,8 +168,14 @@ docker_error_old_databases() {
|
||||||
Counter to that, there appears to be PostgreSQL data in:
|
Counter to that, there appears to be PostgreSQL data in:
|
||||||
${OLD_DATABASES[*]}
|
${OLD_DATABASES[*]}
|
||||||
|
|
||||||
This is usually the result of upgrading the Docker image without upgrading
|
This is usually the result of upgrading the Docker image without
|
||||||
the underlying database using "pg_upgrade" (which requires both versions).
|
upgrading the underlying database using "pg_upgrade" (which requires both
|
||||||
|
versions).
|
||||||
|
|
||||||
|
The suggested container configuration for 18+ is to place a single mount
|
||||||
|
at /var/lib/postgresql which will then place PostgreSQL data in a
|
||||||
|
subdirectory, allowing usage of "pg_upgrade --link" without mount point
|
||||||
|
boundary issues.
|
||||||
|
|
||||||
See https://github.com/docker-library/postgres/issues/37 for a (long)
|
See https://github.com/docker-library/postgres/issues/37 for a (long)
|
||||||
discussion around this process, and suggestions for how to do so.
|
discussion around this process, and suggestions for how to do so.
|
||||||
|
|
@ -264,6 +270,9 @@ docker_setup_env() {
|
||||||
OLD_DATABASES+=( "$d" )
|
OLD_DATABASES+=( "$d" )
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
if [ "${#OLD_DATABASES[@]}" -eq 0 ] && [ "$PG_MAJOR" -ge 18 ] && mountpoint -q /var/lib/postgresql/data; then
|
||||||
|
OLD_DATABASES+=( '/var/lib/postgresql/data (unused mount/volume)' )
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -168,8 +168,14 @@ docker_error_old_databases() {
|
||||||
Counter to that, there appears to be PostgreSQL data in:
|
Counter to that, there appears to be PostgreSQL data in:
|
||||||
${OLD_DATABASES[*]}
|
${OLD_DATABASES[*]}
|
||||||
|
|
||||||
This is usually the result of upgrading the Docker image without upgrading
|
This is usually the result of upgrading the Docker image without
|
||||||
the underlying database using "pg_upgrade" (which requires both versions).
|
upgrading the underlying database using "pg_upgrade" (which requires both
|
||||||
|
versions).
|
||||||
|
|
||||||
|
The suggested container configuration for 18+ is to place a single mount
|
||||||
|
at /var/lib/postgresql which will then place PostgreSQL data in a
|
||||||
|
subdirectory, allowing usage of "pg_upgrade --link" without mount point
|
||||||
|
boundary issues.
|
||||||
|
|
||||||
See https://github.com/docker-library/postgres/issues/37 for a (long)
|
See https://github.com/docker-library/postgres/issues/37 for a (long)
|
||||||
discussion around this process, and suggestions for how to do so.
|
discussion around this process, and suggestions for how to do so.
|
||||||
|
|
@ -264,6 +270,9 @@ docker_setup_env() {
|
||||||
OLD_DATABASES+=( "$d" )
|
OLD_DATABASES+=( "$d" )
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
if [ "${#OLD_DATABASES[@]}" -eq 0 ] && [ "$PG_MAJOR" -ge 18 ] && mountpoint -q /var/lib/postgresql/data; then
|
||||||
|
OLD_DATABASES+=( '/var/lib/postgresql/data (unused mount/volume)' )
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -168,8 +168,14 @@ docker_error_old_databases() {
|
||||||
Counter to that, there appears to be PostgreSQL data in:
|
Counter to that, there appears to be PostgreSQL data in:
|
||||||
${OLD_DATABASES[*]}
|
${OLD_DATABASES[*]}
|
||||||
|
|
||||||
This is usually the result of upgrading the Docker image without upgrading
|
This is usually the result of upgrading the Docker image without
|
||||||
the underlying database using "pg_upgrade" (which requires both versions).
|
upgrading the underlying database using "pg_upgrade" (which requires both
|
||||||
|
versions).
|
||||||
|
|
||||||
|
The suggested container configuration for 18+ is to place a single mount
|
||||||
|
at /var/lib/postgresql which will then place PostgreSQL data in a
|
||||||
|
subdirectory, allowing usage of "pg_upgrade --link" without mount point
|
||||||
|
boundary issues.
|
||||||
|
|
||||||
See https://github.com/docker-library/postgres/issues/37 for a (long)
|
See https://github.com/docker-library/postgres/issues/37 for a (long)
|
||||||
discussion around this process, and suggestions for how to do so.
|
discussion around this process, and suggestions for how to do so.
|
||||||
|
|
@ -264,6 +270,9 @@ docker_setup_env() {
|
||||||
OLD_DATABASES+=( "$d" )
|
OLD_DATABASES+=( "$d" )
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
if [ "${#OLD_DATABASES[@]}" -eq 0 ] && [ "$PG_MAJOR" -ge 18 ] && mountpoint -q /var/lib/postgresql/data; then
|
||||||
|
OLD_DATABASES+=( '/var/lib/postgresql/data (unused mount/volume)' )
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -168,8 +168,14 @@ docker_error_old_databases() {
|
||||||
Counter to that, there appears to be PostgreSQL data in:
|
Counter to that, there appears to be PostgreSQL data in:
|
||||||
${OLD_DATABASES[*]}
|
${OLD_DATABASES[*]}
|
||||||
|
|
||||||
This is usually the result of upgrading the Docker image without upgrading
|
This is usually the result of upgrading the Docker image without
|
||||||
the underlying database using "pg_upgrade" (which requires both versions).
|
upgrading the underlying database using "pg_upgrade" (which requires both
|
||||||
|
versions).
|
||||||
|
|
||||||
|
The suggested container configuration for 18+ is to place a single mount
|
||||||
|
at /var/lib/postgresql which will then place PostgreSQL data in a
|
||||||
|
subdirectory, allowing usage of "pg_upgrade --link" without mount point
|
||||||
|
boundary issues.
|
||||||
|
|
||||||
See https://github.com/docker-library/postgres/issues/37 for a (long)
|
See https://github.com/docker-library/postgres/issues/37 for a (long)
|
||||||
discussion around this process, and suggestions for how to do so.
|
discussion around this process, and suggestions for how to do so.
|
||||||
|
|
@ -264,6 +270,9 @@ docker_setup_env() {
|
||||||
OLD_DATABASES+=( "$d" )
|
OLD_DATABASES+=( "$d" )
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
if [ "${#OLD_DATABASES[@]}" -eq 0 ] && [ "$PG_MAJOR" -ge 18 ] && mountpoint -q /var/lib/postgresql/data; then
|
||||||
|
OLD_DATABASES+=( '/var/lib/postgresql/data (unused mount/volume)' )
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -168,8 +168,14 @@ docker_error_old_databases() {
|
||||||
Counter to that, there appears to be PostgreSQL data in:
|
Counter to that, there appears to be PostgreSQL data in:
|
||||||
${OLD_DATABASES[*]}
|
${OLD_DATABASES[*]}
|
||||||
|
|
||||||
This is usually the result of upgrading the Docker image without upgrading
|
This is usually the result of upgrading the Docker image without
|
||||||
the underlying database using "pg_upgrade" (which requires both versions).
|
upgrading the underlying database using "pg_upgrade" (which requires both
|
||||||
|
versions).
|
||||||
|
|
||||||
|
The suggested container configuration for 18+ is to place a single mount
|
||||||
|
at /var/lib/postgresql which will then place PostgreSQL data in a
|
||||||
|
subdirectory, allowing usage of "pg_upgrade --link" without mount point
|
||||||
|
boundary issues.
|
||||||
|
|
||||||
See https://github.com/docker-library/postgres/issues/37 for a (long)
|
See https://github.com/docker-library/postgres/issues/37 for a (long)
|
||||||
discussion around this process, and suggestions for how to do so.
|
discussion around this process, and suggestions for how to do so.
|
||||||
|
|
@ -264,6 +270,9 @@ docker_setup_env() {
|
||||||
OLD_DATABASES+=( "$d" )
|
OLD_DATABASES+=( "$d" )
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
if [ "${#OLD_DATABASES[@]}" -eq 0 ] && [ "$PG_MAJOR" -ge 18 ] && mountpoint -q /var/lib/postgresql/data; then
|
||||||
|
OLD_DATABASES+=( '/var/lib/postgresql/data (unused mount/volume)' )
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -168,8 +168,14 @@ docker_error_old_databases() {
|
||||||
Counter to that, there appears to be PostgreSQL data in:
|
Counter to that, there appears to be PostgreSQL data in:
|
||||||
${OLD_DATABASES[*]}
|
${OLD_DATABASES[*]}
|
||||||
|
|
||||||
This is usually the result of upgrading the Docker image without upgrading
|
This is usually the result of upgrading the Docker image without
|
||||||
the underlying database using "pg_upgrade" (which requires both versions).
|
upgrading the underlying database using "pg_upgrade" (which requires both
|
||||||
|
versions).
|
||||||
|
|
||||||
|
The suggested container configuration for 18+ is to place a single mount
|
||||||
|
at /var/lib/postgresql which will then place PostgreSQL data in a
|
||||||
|
subdirectory, allowing usage of "pg_upgrade --link" without mount point
|
||||||
|
boundary issues.
|
||||||
|
|
||||||
See https://github.com/docker-library/postgres/issues/37 for a (long)
|
See https://github.com/docker-library/postgres/issues/37 for a (long)
|
||||||
discussion around this process, and suggestions for how to do so.
|
discussion around this process, and suggestions for how to do so.
|
||||||
|
|
@ -264,6 +270,9 @@ docker_setup_env() {
|
||||||
OLD_DATABASES+=( "$d" )
|
OLD_DATABASES+=( "$d" )
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
if [ "${#OLD_DATABASES[@]}" -eq 0 ] && [ "$PG_MAJOR" -ge 18 ] && mountpoint -q /var/lib/postgresql/data; then
|
||||||
|
OLD_DATABASES+=( '/var/lib/postgresql/data (unused mount/volume)' )
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -168,8 +168,14 @@ docker_error_old_databases() {
|
||||||
Counter to that, there appears to be PostgreSQL data in:
|
Counter to that, there appears to be PostgreSQL data in:
|
||||||
${OLD_DATABASES[*]}
|
${OLD_DATABASES[*]}
|
||||||
|
|
||||||
This is usually the result of upgrading the Docker image without upgrading
|
This is usually the result of upgrading the Docker image without
|
||||||
the underlying database using "pg_upgrade" (which requires both versions).
|
upgrading the underlying database using "pg_upgrade" (which requires both
|
||||||
|
versions).
|
||||||
|
|
||||||
|
The suggested container configuration for 18+ is to place a single mount
|
||||||
|
at /var/lib/postgresql which will then place PostgreSQL data in a
|
||||||
|
subdirectory, allowing usage of "pg_upgrade --link" without mount point
|
||||||
|
boundary issues.
|
||||||
|
|
||||||
See https://github.com/docker-library/postgres/issues/37 for a (long)
|
See https://github.com/docker-library/postgres/issues/37 for a (long)
|
||||||
discussion around this process, and suggestions for how to do so.
|
discussion around this process, and suggestions for how to do so.
|
||||||
|
|
@ -264,6 +270,9 @@ docker_setup_env() {
|
||||||
OLD_DATABASES+=( "$d" )
|
OLD_DATABASES+=( "$d" )
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
if [ "${#OLD_DATABASES[@]}" -eq 0 ] && [ "$PG_MAJOR" -ge 18 ] && mountpoint -q /var/lib/postgresql/data; then
|
||||||
|
OLD_DATABASES+=( '/var/lib/postgresql/data (unused mount/volume)' )
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -168,8 +168,14 @@ docker_error_old_databases() {
|
||||||
Counter to that, there appears to be PostgreSQL data in:
|
Counter to that, there appears to be PostgreSQL data in:
|
||||||
${OLD_DATABASES[*]}
|
${OLD_DATABASES[*]}
|
||||||
|
|
||||||
This is usually the result of upgrading the Docker image without upgrading
|
This is usually the result of upgrading the Docker image without
|
||||||
the underlying database using "pg_upgrade" (which requires both versions).
|
upgrading the underlying database using "pg_upgrade" (which requires both
|
||||||
|
versions).
|
||||||
|
|
||||||
|
The suggested container configuration for 18+ is to place a single mount
|
||||||
|
at /var/lib/postgresql which will then place PostgreSQL data in a
|
||||||
|
subdirectory, allowing usage of "pg_upgrade --link" without mount point
|
||||||
|
boundary issues.
|
||||||
|
|
||||||
See https://github.com/docker-library/postgres/issues/37 for a (long)
|
See https://github.com/docker-library/postgres/issues/37 for a (long)
|
||||||
discussion around this process, and suggestions for how to do so.
|
discussion around this process, and suggestions for how to do so.
|
||||||
|
|
@ -264,6 +270,9 @@ docker_setup_env() {
|
||||||
OLD_DATABASES+=( "$d" )
|
OLD_DATABASES+=( "$d" )
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
if [ "${#OLD_DATABASES[@]}" -eq 0 ] && [ "$PG_MAJOR" -ge 18 ] && mountpoint -q /var/lib/postgresql/data; then
|
||||||
|
OLD_DATABASES+=( '/var/lib/postgresql/data (unused mount/volume)' )
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -168,8 +168,14 @@ docker_error_old_databases() {
|
||||||
Counter to that, there appears to be PostgreSQL data in:
|
Counter to that, there appears to be PostgreSQL data in:
|
||||||
${OLD_DATABASES[*]}
|
${OLD_DATABASES[*]}
|
||||||
|
|
||||||
This is usually the result of upgrading the Docker image without upgrading
|
This is usually the result of upgrading the Docker image without
|
||||||
the underlying database using "pg_upgrade" (which requires both versions).
|
upgrading the underlying database using "pg_upgrade" (which requires both
|
||||||
|
versions).
|
||||||
|
|
||||||
|
The suggested container configuration for 18+ is to place a single mount
|
||||||
|
at /var/lib/postgresql which will then place PostgreSQL data in a
|
||||||
|
subdirectory, allowing usage of "pg_upgrade --link" without mount point
|
||||||
|
boundary issues.
|
||||||
|
|
||||||
See https://github.com/docker-library/postgres/issues/37 for a (long)
|
See https://github.com/docker-library/postgres/issues/37 for a (long)
|
||||||
discussion around this process, and suggestions for how to do so.
|
discussion around this process, and suggestions for how to do so.
|
||||||
|
|
@ -264,6 +270,9 @@ docker_setup_env() {
|
||||||
OLD_DATABASES+=( "$d" )
|
OLD_DATABASES+=( "$d" )
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
if [ "${#OLD_DATABASES[@]}" -eq 0 ] && [ "$PG_MAJOR" -ge 18 ] && mountpoint -q /var/lib/postgresql/data; then
|
||||||
|
OLD_DATABASES+=( '/var/lib/postgresql/data (unused mount/volume)' )
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -168,8 +168,14 @@ docker_error_old_databases() {
|
||||||
Counter to that, there appears to be PostgreSQL data in:
|
Counter to that, there appears to be PostgreSQL data in:
|
||||||
${OLD_DATABASES[*]}
|
${OLD_DATABASES[*]}
|
||||||
|
|
||||||
This is usually the result of upgrading the Docker image without upgrading
|
This is usually the result of upgrading the Docker image without
|
||||||
the underlying database using "pg_upgrade" (which requires both versions).
|
upgrading the underlying database using "pg_upgrade" (which requires both
|
||||||
|
versions).
|
||||||
|
|
||||||
|
The suggested container configuration for 18+ is to place a single mount
|
||||||
|
at /var/lib/postgresql which will then place PostgreSQL data in a
|
||||||
|
subdirectory, allowing usage of "pg_upgrade --link" without mount point
|
||||||
|
boundary issues.
|
||||||
|
|
||||||
See https://github.com/docker-library/postgres/issues/37 for a (long)
|
See https://github.com/docker-library/postgres/issues/37 for a (long)
|
||||||
discussion around this process, and suggestions for how to do so.
|
discussion around this process, and suggestions for how to do so.
|
||||||
|
|
@ -264,6 +270,9 @@ docker_setup_env() {
|
||||||
OLD_DATABASES+=( "$d" )
|
OLD_DATABASES+=( "$d" )
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
if [ "${#OLD_DATABASES[@]}" -eq 0 ] && [ "$PG_MAJOR" -ge 18 ] && mountpoint -q /var/lib/postgresql/data; then
|
||||||
|
OLD_DATABASES+=( '/var/lib/postgresql/data (unused mount/volume)' )
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -168,8 +168,14 @@ docker_error_old_databases() {
|
||||||
Counter to that, there appears to be PostgreSQL data in:
|
Counter to that, there appears to be PostgreSQL data in:
|
||||||
${OLD_DATABASES[*]}
|
${OLD_DATABASES[*]}
|
||||||
|
|
||||||
This is usually the result of upgrading the Docker image without upgrading
|
This is usually the result of upgrading the Docker image without
|
||||||
the underlying database using "pg_upgrade" (which requires both versions).
|
upgrading the underlying database using "pg_upgrade" (which requires both
|
||||||
|
versions).
|
||||||
|
|
||||||
|
The suggested container configuration for 18+ is to place a single mount
|
||||||
|
at /var/lib/postgresql which will then place PostgreSQL data in a
|
||||||
|
subdirectory, allowing usage of "pg_upgrade --link" without mount point
|
||||||
|
boundary issues.
|
||||||
|
|
||||||
See https://github.com/docker-library/postgres/issues/37 for a (long)
|
See https://github.com/docker-library/postgres/issues/37 for a (long)
|
||||||
discussion around this process, and suggestions for how to do so.
|
discussion around this process, and suggestions for how to do so.
|
||||||
|
|
@ -264,6 +270,9 @@ docker_setup_env() {
|
||||||
OLD_DATABASES+=( "$d" )
|
OLD_DATABASES+=( "$d" )
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
if [ "${#OLD_DATABASES[@]}" -eq 0 ] && [ "$PG_MAJOR" -ge 18 ] && mountpoint -q /var/lib/postgresql/data; then
|
||||||
|
OLD_DATABASES+=( '/var/lib/postgresql/data (unused mount/volume)' )
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -189,7 +189,6 @@ RUN install --verbose --directory --owner postgres --group postgres --mode 3777
|
||||||
# NOTE: in 18+, PGDATA has changed to match the pg_ctlcluster standard directory structure, and the VOLUME has moved from /var/lib/postgresql/data to /var/lib/postgresql
|
# NOTE: in 18+, PGDATA has changed to match the pg_ctlcluster standard directory structure, and the VOLUME has moved from /var/lib/postgresql/data to /var/lib/postgresql
|
||||||
#
|
#
|
||||||
ENV PGDATA /var/lib/postgresql/18/docker
|
ENV PGDATA /var/lib/postgresql/18/docker
|
||||||
RUN ln -svT . /var/lib/postgresql/data # https://github.com/docker-library/postgres/pull/1259#issuecomment-2215477494
|
|
||||||
VOLUME /var/lib/postgresql
|
VOLUME /var/lib/postgresql
|
||||||
# ("/var/lib/postgresql" is already pre-created with suitably usable permissions above)
|
# ("/var/lib/postgresql" is already pre-created with suitably usable permissions above)
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -168,8 +168,14 @@ docker_error_old_databases() {
|
||||||
Counter to that, there appears to be PostgreSQL data in:
|
Counter to that, there appears to be PostgreSQL data in:
|
||||||
${OLD_DATABASES[*]}
|
${OLD_DATABASES[*]}
|
||||||
|
|
||||||
This is usually the result of upgrading the Docker image without upgrading
|
This is usually the result of upgrading the Docker image without
|
||||||
the underlying database using "pg_upgrade" (which requires both versions).
|
upgrading the underlying database using "pg_upgrade" (which requires both
|
||||||
|
versions).
|
||||||
|
|
||||||
|
The suggested container configuration for 18+ is to place a single mount
|
||||||
|
at /var/lib/postgresql which will then place PostgreSQL data in a
|
||||||
|
subdirectory, allowing usage of "pg_upgrade --link" without mount point
|
||||||
|
boundary issues.
|
||||||
|
|
||||||
See https://github.com/docker-library/postgres/issues/37 for a (long)
|
See https://github.com/docker-library/postgres/issues/37 for a (long)
|
||||||
discussion around this process, and suggestions for how to do so.
|
discussion around this process, and suggestions for how to do so.
|
||||||
|
|
@ -264,6 +270,9 @@ docker_setup_env() {
|
||||||
OLD_DATABASES+=( "$d" )
|
OLD_DATABASES+=( "$d" )
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
if [ "${#OLD_DATABASES[@]}" -eq 0 ] && [ "$PG_MAJOR" -ge 18 ] && mountpoint -q /var/lib/postgresql/data; then
|
||||||
|
OLD_DATABASES+=( '/var/lib/postgresql/data (unused mount/volume)' )
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -189,7 +189,6 @@ RUN install --verbose --directory --owner postgres --group postgres --mode 3777
|
||||||
# NOTE: in 18+, PGDATA has changed to match the pg_ctlcluster standard directory structure, and the VOLUME has moved from /var/lib/postgresql/data to /var/lib/postgresql
|
# NOTE: in 18+, PGDATA has changed to match the pg_ctlcluster standard directory structure, and the VOLUME has moved from /var/lib/postgresql/data to /var/lib/postgresql
|
||||||
#
|
#
|
||||||
ENV PGDATA /var/lib/postgresql/18/docker
|
ENV PGDATA /var/lib/postgresql/18/docker
|
||||||
RUN ln -svT . /var/lib/postgresql/data # https://github.com/docker-library/postgres/pull/1259#issuecomment-2215477494
|
|
||||||
VOLUME /var/lib/postgresql
|
VOLUME /var/lib/postgresql
|
||||||
# ("/var/lib/postgresql" is already pre-created with suitably usable permissions above)
|
# ("/var/lib/postgresql" is already pre-created with suitably usable permissions above)
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -168,8 +168,14 @@ docker_error_old_databases() {
|
||||||
Counter to that, there appears to be PostgreSQL data in:
|
Counter to that, there appears to be PostgreSQL data in:
|
||||||
${OLD_DATABASES[*]}
|
${OLD_DATABASES[*]}
|
||||||
|
|
||||||
This is usually the result of upgrading the Docker image without upgrading
|
This is usually the result of upgrading the Docker image without
|
||||||
the underlying database using "pg_upgrade" (which requires both versions).
|
upgrading the underlying database using "pg_upgrade" (which requires both
|
||||||
|
versions).
|
||||||
|
|
||||||
|
The suggested container configuration for 18+ is to place a single mount
|
||||||
|
at /var/lib/postgresql which will then place PostgreSQL data in a
|
||||||
|
subdirectory, allowing usage of "pg_upgrade --link" without mount point
|
||||||
|
boundary issues.
|
||||||
|
|
||||||
See https://github.com/docker-library/postgres/issues/37 for a (long)
|
See https://github.com/docker-library/postgres/issues/37 for a (long)
|
||||||
discussion around this process, and suggestions for how to do so.
|
discussion around this process, and suggestions for how to do so.
|
||||||
|
|
@ -264,6 +270,9 @@ docker_setup_env() {
|
||||||
OLD_DATABASES+=( "$d" )
|
OLD_DATABASES+=( "$d" )
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
if [ "${#OLD_DATABASES[@]}" -eq 0 ] && [ "$PG_MAJOR" -ge 18 ] && mountpoint -q /var/lib/postgresql/data; then
|
||||||
|
OLD_DATABASES+=( '/var/lib/postgresql/data (unused mount/volume)' )
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -190,7 +190,6 @@ RUN install --verbose --directory --owner postgres --group postgres --mode 3777
|
||||||
# NOTE: in 18+, PGDATA has changed to match the pg_ctlcluster standard directory structure, and the VOLUME has moved from /var/lib/postgresql/data to /var/lib/postgresql
|
# NOTE: in 18+, PGDATA has changed to match the pg_ctlcluster standard directory structure, and the VOLUME has moved from /var/lib/postgresql/data to /var/lib/postgresql
|
||||||
#
|
#
|
||||||
ENV PGDATA /var/lib/postgresql/{{ .major | tostring }}/docker
|
ENV PGDATA /var/lib/postgresql/{{ .major | tostring }}/docker
|
||||||
RUN ln -svT . /var/lib/postgresql/data # https://github.com/docker-library/postgres/pull/1259#issuecomment-2215477494
|
|
||||||
VOLUME /var/lib/postgresql
|
VOLUME /var/lib/postgresql
|
||||||
# ("/var/lib/postgresql" is already pre-created with suitably usable permissions above)
|
# ("/var/lib/postgresql" is already pre-created with suitably usable permissions above)
|
||||||
{{ ) else ( -}}
|
{{ ) else ( -}}
|
||||||
|
|
|
||||||
|
|
@ -168,8 +168,14 @@ docker_error_old_databases() {
|
||||||
Counter to that, there appears to be PostgreSQL data in:
|
Counter to that, there appears to be PostgreSQL data in:
|
||||||
${OLD_DATABASES[*]}
|
${OLD_DATABASES[*]}
|
||||||
|
|
||||||
This is usually the result of upgrading the Docker image without upgrading
|
This is usually the result of upgrading the Docker image without
|
||||||
the underlying database using "pg_upgrade" (which requires both versions).
|
upgrading the underlying database using "pg_upgrade" (which requires both
|
||||||
|
versions).
|
||||||
|
|
||||||
|
The suggested container configuration for 18+ is to place a single mount
|
||||||
|
at /var/lib/postgresql which will then place PostgreSQL data in a
|
||||||
|
subdirectory, allowing usage of "pg_upgrade --link" without mount point
|
||||||
|
boundary issues.
|
||||||
|
|
||||||
See https://github.com/docker-library/postgres/issues/37 for a (long)
|
See https://github.com/docker-library/postgres/issues/37 for a (long)
|
||||||
discussion around this process, and suggestions for how to do so.
|
discussion around this process, and suggestions for how to do so.
|
||||||
|
|
@ -264,6 +270,9 @@ docker_setup_env() {
|
||||||
OLD_DATABASES+=( "$d" )
|
OLD_DATABASES+=( "$d" )
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
if [ "${#OLD_DATABASES[@]}" -eq 0 ] && [ "$PG_MAJOR" -ge 18 ] && mountpoint -q /var/lib/postgresql/data; then
|
||||||
|
OLD_DATABASES+=( '/var/lib/postgresql/data (unused mount/volume)' )
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue