-
Notifications
You must be signed in to change notification settings - Fork 118
Description
I reran the restart.sh script and postgres wouldn't cooperate.
I got the error:
Error response from daemon: failed to create task for container: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: error during container init: error mounting "mstack/appdata/postgresql" to rootfs at "/var/lib/postgresql/data": change mount propagation through procfd: open o_path procfd: open /var/lib/docker/overlay/<hash>/merged/var/lib/postgresql/data: no such file or directory: unknown
I read the docker page for postgres (at https://hub.docker.com/_/postgres#pgdata) and tried updating the volume from:
- ${FOLDER_FOR_DATA:?err}/postgresql:/var/lib/postgresql/data
to
- ${FOLDER_FOR_DATA:?err}/postgresql:/var/lib/postgresql/18/data
But that didn't work and left me with dependency failed to start: container postgresql is unhealthy
Temporary workaround:
Updating the postgresql docker image to:
image: docker.io/library/postgres:17
lets it run, but naturally being stuck at an older version isn't ideal.