The Author Online Book Forums are Moving

The Author Online Book Forums will soon redirect to Manning's liveBook and liveVideo. All book forum content will migrate to liveBook's discussion forum and all video forum content will migrate to liveVideo. Log in to liveBook or liveVideo with your Manning credentials to join the discussion!

Thank you for your engagement in the AoF over the years! We look forward to offering you a more enhanced forum experience.

John C Carnell (44) [Avatar] Offline
Hi guys,

The Postgres team just released a new version of their database platform to Docker this week (9.6). With this release, it causes all the old Postgres Docker containers to break. The Postgres Docker image creates a volume that is not compatible with the last version 9.5.

In order to fix this, you need to blow away the older Postgres Docker images and volumes it created.
You can do this by issuing the following commands:

docker rmi -f postgres:latest
docker rmi -f postgres:9.6.2
docker volume prune

I have since modified the docker compose file used in all of the chapters to explicitly use Postgres:9.5. Before it always just used the latest release and this is how this breaking change comes in.

BTW: This problem is immediately evident because the database container will not start. When this happens you will start seeing nc (NetCat) errors indicating it can find an address of a server. (In this case the database server). Sorry for the inconvenience.