Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Build docker container with 'Dockerfile'
- --------------------------
- $ sudo docker build .
- List all docker images
- --------------------------
- $ sudo docker ps
- Start docker image (e.g. Postgres)
- ----------------------------------
- $ sudo docker run -port 5432:5432 -t postgres
- Remove all images on docker
- ---------------------------------
- $ sudo docker rmi -f $(sudo docker images -q)
- Stop all docker processes
- -------------------------
- $ sudo docker stop $(sudo docker ps -q)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement