Incompatible PostgreSQL Version

After I updated Docker, when I tried to wasp start db I get the error below:

PostgreSQL Database directory appears to contain a database; Skipping initialization

FATAL: database files are incompatible with server
DETAIL: The data directory was initialized by PostgreSQL version 16, which is not compatible with this version 17.2 (Debian 17.2-1.pgdg120+1).
wasp-bin: callCommand: docker run --name wasp-dev-db-XXX-XXX --rm --publish 5432:5432 -v wasp-dev-db-XXXX-86b4beda11:/var/lib/postgresql/data --env POSTGRES_PASSWORD=XXXXXX --env POSTGRES_USER=XXXXXX --env POSTGRES_DB=XXXX-XXXXX postgres (exit 1): failed

Is there a solution for this?
Was this page helpful?