docker ps
docker inspect [container-id]
docker images
docker system prune
Pull image docker pull postgres:alpine
Run postgres
docker run --name postgres-local -e POSTGRES_PASSWORD=123456 -d -p 5432:5432 postgres:alpine
Interact with Postgres
docker exec -it postgres-local bash
psql -U postgres
\du
create database name_database;
\l
\c name_database;
\dt