Note
This plugin is part of the community.docker collection (version 1.10.0).
You might already have this collection installed if you are using the ansible
package. It is not included in ansible-core
. To check whether it is installed, run ansible-galaxy collection list
.
To install it, use: ansible-galaxy collection install community.docker
.
To use it in a playbook, specify: community.docker.nsenter
.
New in version 1.9.0: of community.docker
nsenter
in the host’s PID namespace, allowing it to enter the namespaces of the provided PID (default PID 1, or init/systemd).Parameter | Choices/Defaults | Configuration | Comments |
---|---|---|---|
nsenter_pid integer | Default: 1 | ini entries: [nsenter_connection] env:ANSIBLE_NSENTER_PID var: ansible_nsenter_pid | PID to attach with using nsenter. The default should be fine unless you are attaching as a non-root user. |
Note
nsenter
program; (2) The container is launched in privileged mode; (3) The container is launched in the host’s PID namespace (--pid host
).
© 2012–2018 Michael DeHaan
© 2018–2021 Red Hat, Inc.
Licensed under the GNU General Public License version 3.
https://docs.ansible.com/ansible/latest/collections/community/docker/nsenter_connection.html