Most used Docker commands
- build an image using a Dockerfile
docker build - < Dockerfile -t tag-name
- delete all containers:
docker rm $(docker ps -a -q)
- delete all images:
docker rmi $(docker images -q)
docker build - < Dockerfile -t tag-name
docker rm $(docker ps -a -q)
docker rmi $(docker images -q)