Personal speech, I have a very strange issue in my environment. I'm starting with docker yet.
What I want is to run a docker-compose in a swarm-master that was created in the local virtual box (via docker-machine). I already ran the eval $ (docker-machine env --swarm node_name) command, but every time I use the docker or docker-compose CLI, it tries to run on my machine and not on the VM.
This worked well when I used a virtual machine like my computer, and the swarm created in digitalocean. But to avoid costs, I've changed my approach to continuing my studies.
I use Ubuntu 16.04