Community Docker Collection for Ansible: modules and plugins for working with Docker
Go to file
2024-09-17 21:01:25 +02:00
.azure-pipelines Bump Azure test container to 6.0.0. (#877) (#878) 2024-06-10 21:02:05 +02:00
.github Clean up containers for CI with 2.9 and 2.10. 2024-06-15 14:43:21 +02:00
changelogs Release 2.7.13. 2024-09-17 21:01:25 +02:00
docs/docsite Remove link to Google Groups mailing list. (#962) (#963) 2024-09-08 16:52:00 +02:00
meta [stable-2] Fix docker_image tests with Docker SDK for Python 7.1.0; restrict requests in EE dependencies to < 2.32.0 (#872) 2024-05-26 19:43:47 +02:00
plugins docker_prune: improve docs, fix handling of lists for filters (#966) (#967) 2024-09-17 21:00:50 +02:00
tests Fix typo in Docker connection tests. (#964) (#965) 2024-09-09 15:31:42 +02:00
.gitignore Initial commit 2020-10-30 07:05:51 +01:00
CHANGELOG.md Release 2.7.13. 2024-09-17 21:01:25 +02:00
CHANGELOG.rst Release 2.7.13. 2024-09-17 21:01:25 +02:00
COPYING Initial cleanup. 2020-10-30 07:05:51 +01:00
galaxy.yml Next expected release is 2.7.13. 2024-07-09 22:27:18 +02:00
PSF-license.txt Update with actual CPython 3.9.5 license. (#351) 2022-05-16 08:36:59 +02:00
README.md Improve communication link description. 2024-08-15 21:41:55 +02:00

Docker Community Collection

Doc Build Status Codecov

This repo contains the community.docker Ansible Collection. The collection includes many modules and plugins to work with Docker.

Please note that this collection does not support Windows targets. The connection plugins included in this collection support Windows targets on a best-effort basis, but we are not testing this in CI.

Communication

For more information about communication, see the Ansible communication guide.

Tested with Ansible

Tested with the current Ansible 2.9, ansible-base 2.10, ansible-core 2.11, ansible-core 2.12, ansible-core 2.13, and ansible-core 2.14 releases. Ansible versions before 2.9.10 are not supported.

Please note that support for Ansible 2.9 and ansible-base 2.10 has been deprecated and will be dropped from community.docker 3.0.0 on.

External requirements

Most modules and plugins require the Docker SDK for Python. For Python 2.6 support, use the deprecated docker-py library instead.

Please note that Python 2.6 support has been deprecated and will be dropped from community.docker 3.0.0 on.

Both libraries cannot be installed at the same time. If you accidentally did install them simultaneously, you have to uninstall both before re-installing one of them.

Included content

  • Connection plugins:
    • community.docker.docker: use Docker containers as remotes
  • Inventory plugins:
    • community.docker.docker_machine: collect Docker machines as inventory
    • community.docker.docker_swarm: collect Docker Swarm nodes as inventory
  • Modules:
    • Docker:
      • community.docker.docker_container: manage Docker containers
      • community.docker.docker_container_exec: run commands in Docker containers
      • community.docker.docker_container_info: retrieve information on Docker containers
      • community.docker.docker_host_info: retrieve information on the Docker daemon
      • community.docker.docker_image: manage Docker images
      • community.docker.docker_image_info: retrieve information on Docker images
      • community.docker.docker_image_load: load Docker images from archives
      • community.docker.docker_login: log in and out to/from registries
      • community.docker.docker_network: manage Docker networks
      • community.docker.docker_network_info: retrieve information on Docker networks
      • community.docker.docker_plugin: manage Docker plugins
      • community.docker.docker_prune: prune Docker containers, images, networks, volumes, and build data
      • community.docker.docker_volume: manage Docker volumes
      • community.docker.docker_volume_info: retrieve information on Docker volumes
    • Docker Compose:
      • community.docker.docker_compose: manage Docker Compose files
    • Docker Swarm:
      • community.docker.docker_config: manage configurations
      • community.docker.docker_node: manage Docker Swarm nodes
      • community.docker.docker_node_info: retrieve information on Docker Swarm nodes
      • community.docker.docker_secret: manage secrets
      • community.docker.docker_swarm: manage Docker Swarm
      • community.docker.docker_swarm_info: retrieve information on Docker Swarm
      • community.docker.docker_swarm_service: manage Docker Swarm services
      • community.docker.docker_swarm_service_info: retrieve information on Docker Swarm services
    • Docker Stack:
      • community.docker.docker_stack: manage Docker Stacks
      • community.docker.docker_stack_info: retrieve information on Docker Stacks
      • community.docker.docker_stack_task_info: retrieve information on tasks in Docker Stacks
    • Other:
      • current_container_facts: return facts about whether the module runs in a Docker container

Using this collection

Before using the Docker community collection, you need to install the collection with the ansible-galaxy CLI:

ansible-galaxy collection install community.docker

You can also include it in a requirements.yml file and install it via ansible-galaxy collection install -r requirements.yml using the format:

collections:
- name: community.docker

See Ansible Using collections for more details.

Contributing to this collection

If you want to develop new content for this collection or improve what is already here, the easiest way to work on the collection is to clone it into one of the configured COLLECTIONS_PATH, and work on it there.

You can find more information in the developer guide for collections, and in the Ansible Community Guide.

Release notes

See the changelog.

More information

Licensing

GNU General Public License v3.0 or later.

See COPYING to see the full text.