Skip to content

Latest commit

 

History

History
33 lines (29 loc) · 659 Bytes

docker_cheatsheet.md

File metadata and controls

33 lines (29 loc) · 659 Bytes

Docker Cheatsheet Commands

listing

$ docker ps
$ docker images
$ docker container ls
$ docker volume ls (bind mounts will not show up in this list)

docker compose

$ docker-compose up #already built
$ docker-compose up --build

Entering container's command line Find container id with docker ps first

$ docker exec -it <container id> /bin/bash

remove or stop docker

$ docker images -a
$ docker stop ImageId
$ docker stop 06f3b2498fdc
$ docker rmi Image
$ docker rmi -f 06f3b2498fdc  1f1bd4302537
$ docker-compose rm -fv
$ docker stop wtt_server wtt_front wtt_db
$ docker rm wtt_server wtt_front wtt_db