Why >>> eval "$(docker-machine env default)" in a ansible playbook script return "No such file or directory" -


i try execute docker-compose create containers on docker-machine (driver virtualbox) ansible. so, write ansible-playbook script that. user (all/nopasswd) added suddoers group.

activate machine before.

shell: eval "$(docker-machine env default)"   shell: docker-compose -d 

it didnt activate remote machine. stays on host.

ok: [192.168.0.12] => { "msg": "" }

so, docker-compose create container on local machine instead of remote machine.

thank in advance help.

olivier

my bad, each task in isolated shell, write shell multiline resole problem.

shell: |   eval $(sudo docker-machine env default)   docker-compose -d 

Comments

Popular posts from this blog

php - How to add and update images or image url in Volusion using Volusion API -

Laravel mail error `Swift_TransportException in StreamBuffer.php line 269: Connection could not be established with host smtp.gmail.com [ #0]` -

c# SetCompatibleTextRenderingDefault must be called before the first -