$ docker search postgres
$ docker pull postgres:latest
$ docker images
$ docker run --name postgres_5432 -p 5432:5432 -e POSTGRES_PASSWORD=pw_postgres -d postgres:latest
docker run --restart=always --name postgres_5432 -p 5432:5432 -e POSTGRES_PASSWORD=pw_postgres -d postgres:latest
$ docker ps
$ docker ps -a
$ docker exec -i -t postgres_5432 /bin/bash
$ root@8f2873100437:/# su - postgres
postgres@8f2873100437:~$ psql -d postgres -U postgres
psql (14.0 (Debian 14.0-1.pgdg110+1))
Type "help" for help.