Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ## Docker commands
- #### ID of the container
- docker ps
- #### Inspect containers
- docker inspect [container-id]
- #### Docker Images
- docker images
- #### Removing All Unused Objects
- docker system prune
- #### Postgres
- *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
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement