Remove containers and images
snippet by crosbymichael
#!/bin/bash
### Delete all containers
docker rm $(docker ps -a -q)
### Delete all images
docker rmi $(docker images -q)
Bash into a container
docker exec -i -t CONTAINERNAME bash
Copy file from container to host
docker cp <containerId>:/file/path/within/container /host/path/target
Copy file from host to container
docker cp /host/path/target <containerId>:/file/path/within/container
Alias to get IP
alias dip="docker inspect --format '{{ .NetworkSettings.IPAddress }}'"