How do I undo the command $ eval "$(docker-machine env blog)"

JAstuccio picture JAstuccio · May 30, 2015 · Viewed 9.2k times · Source

I think that command redirected $ docker commands to the docker machine. Now all my docker commands are giving me an error FATA[0000] Couldn't read ca cert... follwed by the path to the docker-machine I created. How can I fix my shell?

Answer

David Gageot picture David Gageot · Oct 21, 2015

What you are looking for is:

eval "$(docker-machine env -u)"

It will unset the DOCKER_* variables.

For the record, here's the output of docker-machine env -u:

unset DOCKER_TLS_VERIFY
unset DOCKER_HOST
unset DOCKER_CERT_PATH
unset DOCKER_MACHINE_NAME