Contents

Postgres

Contents

docker run --name postgres-sandbox -e POSTGRES_PASSWORD=postgres -e POSTGRES_DB=postgres-sandbox -p 5432:5432 -d postgres
The default postgres user and database are created in the entrypoint with initdb.

docker exec -it postgres-sandbox psql -U POSTGRES_USERNAME

References

🔗 Backlinks