pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Markus KARG <markus@headcrashing.eu>
To: pgsql-bugs@lists.postgresql.org
Subject: Re: Version 18.0 of postgres image in dockerhub - container crashes when starting up
Date: Wed, 22 Oct 2025 19:20:09 +0200
Message-ID: <6eec7166-3f56-4962-a015-719eef3dd964@headcrashing.eu> (raw)
In-Reply-To: <CAJ=gJTEm161cfAbKP+2=9d_4Miyud4MH5oW=0dhewNZ5nTo6Vw@mail.gmail.com>
References: <CAJ=gJTEm161cfAbKP+2=9d_4Miyud4MH5oW=0dhewNZ5nTo6Vw@mail.gmail.com>

In contrast to 17.x, the 18.x container needs to mount the volulme at 
.../18/docker:/var/lib/postgresql instead of 
...data:var/lib/postresql/data. This is told in the instructions of the 
docker image, see the chapter about PGDATA: 
https://hub.docker.com/_/postgres/#pgdata.

-Markus

Am 21.10.2025 um 14:21 schrieb Yuval Roth:
> 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
>
> ```
>





view thread (2+ messages)

Message-ID: <6eec7166-3f56-4962-a015-719eef3dd964@headcrashing.eu>
Permalink:  ../6eec7166-3f56-4962-a015-719eef3dd964@headcrashing.eu/
Also on:    postgresql.org/message-id/6eec7166-3f56-4962-a015-719eef3dd964@headcrashing.eu

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-bugs@postgresql.org
  Cc: markus@headcrashing.eu, pgsql-bugs@lists.postgresql.org
  Subject: Re: Version 18.0 of postgres image in dockerhub - container crashes when starting up
  In-Reply-To: <6eec7166-3f56-4962-a015-719eef3dd964@headcrashing.eu>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox