Skip to content
This repository was archived by the owner on Jul 27, 2026. It is now read-only.
This repository was archived by the owner on Jul 27, 2026. It is now read-only.

Ansible deprecation warning for docker_container vs docker networks #22

Description

@ryanjsims

When starting the dev environment (probably other environments too) there is a deprecation warning for Ansible about docker network behavior changing in Ansible 2.12, may or may not actually be a problem but its something that needs research.

image

[DEPRECATION WARNING]: Please note that docker_container handles networks slightly different than docker CLI. 
If you specify networks, the default network will still be attached as the first network. (You can specify 
purge_networks to remove all networks not explicitly listed.) This behavior will change in Ansible 2.12. You 
can change the behavior now by setting the new `networks_cli_compatible` option to `yes`, and remove this 
warning by setting it to `no`. This feature will be removed in version 2.12. Deprecation warnings can be 
disabled by setting deprecation_warnings=False in ansible.cfg.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions