run docker ps -a to see the ID of postgres:alpine container
run docker start -ai 3f9c34176b00
Error output:
➜ docker git:(master) docker start -ai 3f9c34176b00
2019-01-05 16:17:16.512 UTC [1] FATAL: database files are incompatible with server
2019-01-05 16:17:16.512 UTC [1] DETAIL: The data directory was initialized by PostgreSQL version 10, which is not compatible with this version 11.1.
To replicate:
docker
directorydocker-compose -p psm up -d --build
docker ps -a
to see the ID ofpostgres:alpine
containerdocker start -ai 3f9c34176b00
Error output: