You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm getting this error whenever I try to remove 3+ containers at the same time using docker rm -f container_1 container_2 container_3 syntax. Somehow only 2 of the container's firewall rule is deleted and 3rd container errors with no such container error...
Right now it looks like it's consistent behavior, easily reproducible. I cannot find the cause at the moment..
So until this issue is fixed, please don't remove 3+ containers at the same time 🤦♂️
The text was updated successfully, but these errors were encountered:
Found the reason. On this line I'm trying to reference container's IP address from *types.NetworkSettings field. But it's returning empty string when I turn off multiple containers at once. I guess this IPAddress field is trying to get the IP address after container is already detached from the network, hence IPAddress is empty.
Since ContainerIP variable is emptry next if condition gets triggered and program crashes because of unsafe map access.
Ultimately this reveals the bigger problem that I cannot get the IPAddress reference before container shuts down. I need to store the container IP address somewhere else.
I'm getting this error whenever I try to remove 3+ containers at the same time using
docker rm -f container_1 container_2 container_3
syntax. Somehow only 2 of the container's firewall rule is deleted and 3rd container errors with no such container error...Right now it looks like it's consistent behavior, easily reproducible. I cannot find the cause at the moment..
So until this issue is fixed, please don't remove 3+ containers at the same time 🤦♂️
The text was updated successfully, but these errors were encountered: