Version 18.0 of postgres image in dockerhub - container crashes when starting up

From: Yuval Roth <yuvalroth123(at)gmail(dot)com>
To: pgsql-bugs(at)lists(dot)postgresql(dot)org
Subject: Version 18.0 of postgres image in dockerhub - container crashes when starting up
Date: 2025-10-21 12:21:08
Message-ID: CAJ=gJTEm161cfAbKP+2=9d_4Miyud4MH5oW=0dhewNZ5nTo6Vw@mail.gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

Hello, my docker compose file pulled from "latest" tag and after refreshing
the image, the container failed to start with an error. After downgrading
to version 17.6 it started working again

The docker file config is:

```

ims-db:
image: postgres:latest
container_name: ims-db
environment:
POSTGRES_DB: ims-db
ports:
- "5432:5432"
networks:
- ims-network
volumes:
- ./database/init.sql:/docker-entrypoint-initdb.d/init.sql
- ./database/data:/var/lib/postgresql/data
env_file: db_credentials.env

```

The error is

```

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
"/run/desktop/mnt/host/c/Users/Yuval/git/ims_project/database/data" to
rootfs at "/var/lib/postgresql/data": change mount propagation through
procfd: open o_path procfd: open
/var/lib/docker/rootfs/overlayfs/b8270e0667c6ebbba5dcd89130fedd34dd01317b7cf14125cc943b475ee6d167/var/lib/postgresql/data:
no such file or directory: unknown

```

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Daniel Gustafsson 2025-10-21 13:14:08 Re: BUG #19092: scram_free() will free on address which was not malloc()-ed in pg_scram_mech
Previous Message David Rowley 2025-10-21 11:22:32 Re: Segfault in RI UPDATE CASCADE on partitioned tables with LIKE+ATTACH child (attnum drift)