shinebayar-g / ufw-docker-automated

Manage docker containers firewall with UFW!
Apache License 2.0
198 stars 31 forks source link

Cannot detect some container IP addresses when stopping multiple containers #36

Closed shinebayar-g closed 2 years ago

shinebayar-g commented 2 years ago

Follow up #32, in bulk container stop scenario, program cannot detect some container's ip addresses. Because of this, program cannot delete some ufw rules. Inspecting the container state isn't reliable when container is shutting down. There will always be some race conditions. We should probably store the inspected data into memory when container starts. Then we could use state data to grab necessary information when container is shutting down.