Postgres is https://db-engines.com/en/ranking currently available. It’s designed to power database applications — which either serve important data directly to end users or through another application via APIs.

While it’s possible to use the Postgres Official Image in production, Docker Postgres containers are best suited for local development.

Enter the following docker run command to start a new Postgres instance or container: docker run --name some-postgres -e POSTGRES_PASSWORD=mysecretpassword -d postgres

However, you can also use the Postgres interactive terminal, or psql, to query Postgres directly: docker run -it --rm --network some-network postgres psql -h some-postgres -U postgres psql (14.3) Type "help" for help.

Related Articles