DEV Community

01yym
01yym

Posted on • Edited on

docker postgres:16

docker --help

docker pull postgres:16

Digest: sha256:5d65b8bdb20369ea902b987aa63cfe4983130bc8cd2c25830d126636b80b608d
Status: Downloaded newer image for postgres:16
docker.io/library/postgres:16

docker image ls
docker image rm ImageID
docker image ls
REPOSITORY TAG IMAGE ID CREATED SIZE
postgres 16 4cb9910d1a8e 4 days ago 432MB

docker run --name NextjsDB -e POSTGRES_PASSWORD=postgres -d postgres:16

docker ps
docker stop NextjsDB -s SIGKILL
docker ps
docker rm NextjsDB
docker ps -a

docker exec --help
docker exec -it NextjsDB psql --help
docker exec -it NextjsDB psql -U postgres

Top comments (0)

Image of AssemblyAI

Automatic Speech Recognition with AssemblyAI

Experience near-human accuracy, low-latency performance, and advanced Speech AI capabilities with AssemblyAI's Speech-to-Text API. Sign up today and get $50 in API credit. No credit card required.

Try the API

👋 Kindness is contagious

Immerse yourself in a wealth of knowledge with this piece, supported by the inclusive DEV Community—every developer, no matter where they are in their journey, is invited to contribute to our collective wisdom.

A simple “thank you” goes a long way—express your gratitude below in the comments!

Gathering insights enriches our journey on DEV and fortifies our community ties. Did you find this article valuable? Taking a moment to thank the author can have a significant impact.

Okay