# eval will set the variable to use Docker without the need to start "Docker Quickstart Terminal" # eval takes a string as its argument, and evaluates it as if you'd typed that string on a command line. # (If you pass several arguments, they are first joined with spaces between them.) eval $(docker-machine env) # Stop all docker container docker stop $(docker ps -a -q) # Delete all docker container docker rm $(docker ps -a -q) # Delete all images docker rmi $(docker images -q) # show Volume Mounts docker inspect -f '{{ .Mounts }}' CONTAINERNAME # Removes all Volumes docker volume rm $(docker volume ls -qf dangling=true) # Updates all Images docker images | awk '{print $1}'|grep -v "REPOSITORY" |xargs -L1 docker pull # Bash Completion curl -L https://raw.githubusercontent.com/docker/compose/$(docker-compose version --short)/contrib/completion/bash/docker-compose > /etc/bash_completion.d/docker-compose