diff --git a/labgrid/resource/docker.py b/labgrid/resource/docker.py index 626e4f803..ff6e1a332 100644 --- a/labgrid/resource/docker.py +++ b/labgrid/resource/docker.py @@ -108,6 +108,7 @@ def on_client_bound(self, client): nw_service = target_factory.make_resource( self.target, "NetworkService", service_name, network_service) + nw_service.parent = self if client.container_name not in self._nw_services: self._nw_services[client.container_name] = list() self._nw_services[client.container_name].append(nw_service)