Skip to content

Latest commit

 

History

History
33 lines (24 loc) · 534 Bytes

File metadata and controls

33 lines (24 loc) · 534 Bytes

Common recipes

System cleanup

Stop and remove all docker containers and images:

docker stop $(docker ps -a -q)
docker rm $(docker ps -a -q)
docker rmi $(docker images -q)

Remove all docker volumes:

docker volume prune

Remove all docker images with no associated container:

docker image prune -a

Create a new docker machine

docker-machine create \
    --driver generic \
    --generic-ip-address machine_ip \
    --generic-ssh-key ~/.ssh/id_rsa.pub \
    machine_name