Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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?

like image 265
JAstuccio Avatar asked May 30 '15 19:05

JAstuccio


2 Answers

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 
like image 60
David Gageot Avatar answered Sep 19 '22 16:09

David Gageot


You could also restart your shell. This will drop the variables that minkube docker-env exports.

like image 34
alisianoi Avatar answered Sep 22 '22 16:09

alisianoi