Open
Description
when running a container with
client.containers.run(.....,
network=net1,
......)
the container ends up connected to the network, but when calling net1.containers
on the network object, it returns an empty list ([])
When re-getting the network object with
client.networks.get(net1_name)
,
the container shows up.
to reproduce this bug:
- create a network object with client.networks.create
- run a container with
client.containers.run
, with parameternetwork = (the name of the net you created)
- check
network_object.containers
field and see it's empty - do
client.networks.get(net1_name)
to re-get the object and see that now the container is present in
checked this issue with two different hosts with different docker versions, both reproduced the bug.