pg.ddx.io pgsql-bugs@postgresql.org mailing list archivehelp / color / mirror / Atom feed
From: Mark Kirkwood <mark.kirkwood@catalyst.net.nz>
To: pgsql-bugs@lists.postgresql.org
Subject: Re: BUG #15854: postgres wtih Docker: binding port fails with release greater than 9.6.13
Date: Mon, 17 Jun 2019 15:31:28 +1200
Message-ID: <380d98db-5746-73af-87a1-aca2884c3539@catalyst.net.nz> (raw)
In-Reply-To: <15854-544de1495db7399b@postgresql.org>
References: <15854-544de1495db7399b@postgresql.org>
On 17/06/19 12:35 AM, PG Bug reporting form wrote:
>
> IT is successful.
>
> Remove the running container, start again but use a postgres version later
> than 9.6. here I'm using "latest", pulled on June 16, 2019. note the
> commands below are identical to the example above except for the postgres
> docker image used.
>
> 1. Create container:
> docker run -i --detach --name lcj34__biohpc_phg_postgres_container -e
> POSTGRES_PASSWORD=phgP0stgr3s -v
> /workdir/lcj34/DockerPostgresTests_working/dockerDB_data/data:/var/lib/postgresql/data
> -p 8010:5432 postgres:latest
What I suspect is happening is this: the volume you used for the 9.6
container still has the database files there (even after the container
has stopped), so when you try to reuse it for a later version the new
postmaster will refuse to start. I suggest naming the volume path with a
version. e.g:
docker run -i --detach --name lcj34__biohpc_phg_postgres_container -e
POSTGRES_PASSWORD=phgP0stgr3s -v
/workdir/lcj34/DockerPostgresTests_working/dockerDB_data/10:/var/lib/postgresql/data
regards
Mark
view thread (5+ messages) latest in thread
Message-ID: <380d98db-5746-73af-87a1-aca2884c3539@catalyst.net.nz> Permalink: ../380d98db-5746-73af-87a1-aca2884c3539@catalyst.net.nz/ Also on: postgresql.org/message-id/380d98db-5746-73af-87a1-aca2884c3539@catalyst.net.nz ·
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 from your mail client; the link fills in the headers below: reply via email Some clients, webmail especially, drop In-Reply-To and References from a link, and the reply then starts a new thread: use the mbox below. To: pgsql-bugs@postgresql.org Cc: mark.kirkwood@catalyst.net.nz Subject: Re: BUG #15854: postgres wtih Docker: binding port fails with release greater than 9.6.13 In-Reply-To: <380d98db-5746-73af-87a1-aca2884c3539@catalyst.net.nz> References: <15854-544de1495db7399b@postgresql.org> <380d98db-5746-73af-87a1-aca2884c3539@catalyst.net.nz> * 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