diff --git a/components/engine/libcontainerd/client_daemon.go b/components/engine/libcontainerd/client_daemon.go index 1b5ea2ab90..1cff3ec078 100644 --- a/components/engine/libcontainerd/client_daemon.go +++ b/components/engine/libcontainerd/client_daemon.go @@ -728,8 +728,9 @@ func (c *client) processEventStream(ctx context.Context) { eventStream, err = c.getRemote().EventService().Subscribe(ctx, &eventsapi.SubscribeRequest{ Filters: []string{ - "namespace==" + c.namespace, - "topic~=/tasks/", + // Filter on both namespace *and* topic. To create an "and" filter, + // this must be a single, comma-separated string + "namespace==" + c.namespace + ",topic~=|^/tasks/|", }, }, grpc.FailFast(false)) if err != nil {