Start (run)
$ docker run -dp 8080:8080 -it <container-name>
Build
$ docker build . -t <tag name>
List all containers:
$ docker container ls
List all images:
$ docker image ls
Stop all containers:
$ docker kill $(docker ps -q)
Remove all images:
$ docker rmi -f $(docker images -a -q)
Prune:
$ docker system prune --volumes
Stop and remove all containers
$ for i in $(docker stop $(docker ps -a -q --filter ancestor=lewis-poc/docker-ecr-workflow-node-api --format="{{.ID}}")); do docker rm $i & done
Check container log disk sizes
$ du -h $(docker inspect --format='{{.LogPath}}' $(docker ps -qa))