Within MacOS, I have created 2 docker machines, say, dev1 and dev2.
In one terminal running $docker-machine active
shows dev1 as an active docker-machine and in the other, dev2. Now I want to switch to dev2 in the 1st terminal (without stopping/removing etc. dev1) so that I'll have dev2 in both.
How do I do this? Thanks!
run command in your terminal eval $(docker-machine env [machine-name])
Run docker-machine ls
to get available machines list
So I have been researching on this for some time and what I found is that I have to run $eval "$(docker-machine env dev2)"
in Terminal 1.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With