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)
docker stop $(docker ps -a -q)
docker rm $(docker ps -a -q)