eval "$(docker-machine env dev)"
In which dev must be already registered in docker-machine. Says IP address of dev machine is 192.168.99.101, and API is exposed on port 2376, then the command above is equivalent to following commands:
DOCKER_HOST=tcp://192.168.99.101:2376
DOCKER_CERT_PATH=/path/to/pem
DOCKER_TLS_VERIFY=1
DOCKER_MACHINE_NAME=dev
eval "$(docker-machine env -u)"
The command above is equivalent to the following commands:
unset DOCKER_TLS_VERIFY
unset DOCKER_HOST
unset DOCKER_CERT_PATH
unset DOCKER_MACHINE_NAME