I found a diagram defining what docker is
When I run docker on a image it does not work unless I have run docker-machine to create VM. So looking at the diagram it seems that the machine I use to create the VM is the client and VM or droplet I create is the host, is that correct?
I am having some trouble getting a container to connect to the machine I ran the docker-machine to create and type docker run commands on, which has a mysql db running.
I have to use its specific IP address to connect which seems odd as it has a secure connection already.
I have tried many things but nothing is working except the specific IP and a port opened.