Docker privileged containers

113 views
Skip to first unread message

Abed Halawi

unread,
Sep 8, 2014, 4:07:07 AM9/8/14
to ansible...@googlegroups.com
I am using a playbook task to run a docker containers, it's running correctly except that it is not running with the `--privileged` option although I am choosing `privileged=yes`:

- name: Launch Datadog monitoring agent
      docker:
          image: datadog/docker-dd-agent
          privileged: yes
          name: dd-agent
          hostname: "{{datadog.hostname}}"
          volumes:
              - /var/run/docker.sock:/var/run/docker.sock
              - /proc/mounts:/host/proc/mounts:ro
              - /cgroup:/host/sys/fs/cgroup:ro
          env: "API_KEY={{datadog.key}}"
      tags: monitoring


Michael DeHaan

unread,
Sep 8, 2014, 5:38:52 PM9/8/14
to ansible...@googlegroups.com
Can you share the output of ansible --version ?



--
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 ansible-proje...@googlegroups.com.
To post to this group, send email to ansible...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/97745d71-73cf-4d8e-907d-fb384f265268%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Alvaro Gil

unread,
Aug 1, 2016, 10:53:32 AM8/1/16
to Ansible Project
Same here with `docker_container`, completely ignores `privileged: true`.
Reply all
Reply to author
Forward
0 new messages