7,540
edits
Changes
Docker
,→Set Active machine
===Set Active machine===
With the our local docker client in our host machine we can connect to the docker daemon of any of the virtual hosts. That virtual host that we can managed locally is called "active" host. From Docker client point of view, the active virtual host can be managed with the '''docker''' and with the '''docker-compose''' commands form the local host, as we executed these commands on the (remote) virtual host.
We can make any docker-machine managed virtual host active with the ''''docker-machine env <machine name>'''' command. Docker gets connection information from
environment variables. With this command we can redirect our docker CLI.