docker_network state:absent destroys networks with containers still attached, contrary to the documentation #1014
Labels
docker-plain
plain Docker (no swarm, no compose, no stack)
documentation
Improvements or additions to documentation
SUMMARY
When I run a playbook which declares the state of an existing docker_network with connected containers to be absent, I expect the deletion to fail as documented here
Instead the network is deleted leaving the container running but without the network.
ISSUE TYPE
COMPONENT NAME
docker_network
ANSIBLE VERSION
COLLECTION VERSION
CONFIGURATION
OS / ENVIRONMENT
MacOS 14.7.1
STEPS TO REPRODUCE
Playbook 1
Playbook 2
EXPECTED RESULTS
I expected
custom_network
to remain in existence after running playbook2, but in fact it is gone.ACTUAL RESULTS
Output below is from playbook 2 only showing it disconnecting the container and deleting the network contrary to the docs.
The text was updated successfully, but these errors were encountered: