How to undo eval $(doker-machine env dm)


After creating a docker machine, I used the command eval $(docker-machine eng dm) to set the docker CLI to point to it. But afterward, I need to point it back to my docker host to do other work. How can I do that? It must be sth trivial, but I seem unable to find it.

Command eval $(docker-machine env -u) unsets the environment variables and then docker CLI will point back to your host.

1 Like

Thank you so much tsafe!