Changes

Docker

332 bytes added, 16:37, 23 June 2018
Manage machines
</pre>
* NAME: name of the created machine
* ACTIVE: from the 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, all as we would executed these commands on the '''docker''' commands will be redirected to itremote virtual host. There can be always a single active machine that is marked with an asterisk '*' in the ls output.
* DRIVER:
* STATE:
===Activate machine===
  One From the Docker client point of view, the active virtual host can be activated 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. Run this command in the host.
<pre>
# docker-machine env manager
As the output of the env command suggests, you have to run the '''eval ''' command in the that shell that you want to use to managed the active virtual host.
<pre>
# eval $(docker-machine env manager)
Now, in the same shell, run the '''ls ''' command again. The machine 'manager' will be marked with the asterisk in the ACTIVE column.
<pre>
# docker-machine ls