Skip to content

Ansible deprecation warning for docker_container vs docker networks #22

@ryanjsims

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.

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