docker-compose does not use env acquired by eval

0

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

    
asked by anonymous 24.02.2017 / 12:56

1 answer

1

Good people, I got it sorted out. It was only to change the permissions of the docker-machine that everything started working normally. Just be careful that changing the permissions for some reason made the machines that were mounted misconfigure.

Embrace.

    
09.03.2017 / 18:11