community.general.docker (1.3.14) — connection

Run tasks in docker containers

Authors: Lorin Hochestein (!UNKNOWN), Leendert Brouwer (!UNKNOWN)

Install collection

Install with ansible-galaxy collection install community.general:==1.3.14


Add to requirements.yml

  collections:
    - name: community.general
      version: 1.3.14

Description

Run commands or put/fetch files to an existing docker container.

Inputs

    
remote_addr:
    default: inventory_hostname
    description:
    - The name of the container you want to access.
    vars:
    - name: ansible_host
    - name: ansible_docker_host

remote_user:
    description:
    - The user to execute as inside the container
    vars:
    - name: ansible_user
    - name: ansible_docker_user

docker_extra_args:
    default: ''
    description:
    - Extra arguments to pass to the docker command line