When i try to run the following task:
- name: start docker container
docker:
name: container
image: img
state: started
expose:
- 8301:8182
volumes:
- /mydata/folder:/opt/mydata/:Z
Ansible poses an error - {"changed": false, "failed": true, "msg": "bind
mode needs to either be \"ro\" or \"rw\""}
I was facing a lot of issues with volumes earlier when i was using :ro
(manual deployment) which went away after simply using :Z. Now ansible is
not letting me use it and the same images are posing errors when starting.
Can you please tell me why it is not allowed and how to come around this
thing ?
--
You received this message because you are subscribed to the Google Groups
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/8ba2a68d-5759-4aa4-9f62-0e207215fb8a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.