Promtail does not drop logs on relabel_configs action: drop

I have the following promtail configuration, that should do nothing:

scrape_configs:
  - job_name: "docker"
    docker_sd_configs:
      - host: "unix:///var/run/docker.sock"
        refresh_interval: "2s"
    pipeline_stages:
      - docker: {}
      - static_labels:
          source: test
    relabel_configs:
       - action: drop

Yet, it transfers the logs of all docker containers. Why? Shouldn’t action:drop drop the target from promtail? How to postprocess targets to drop them depending on

2024-04-09T08:40:04-04:00 {dc="wee-dev", instance="weelxavt011d", source="test"} level=error ts=2024-04-09T12:40:04.028387352
Z caller=target.go:100 target=docker/9e961738d7de8981c4160f8791e18833c57906d5fc87f07bf140eae0adbd0983 msg="could not inspect
container info" container=9e961738d7de8981c4160f8791e18833c57906d5fc87f07bf140eae0adbd0983 err="Error response from daemon: N
o such container: 9e961738d7de8981c4160f8791e18833c57906d5fc87f07bf140eae0adbd0983"
2024-04-09T08:40:04-04:00 {dc="wee-dev", instance="weelxavt011d", source="test"} Tue Apr  9 12:40:04 UTC 2024
2024-04-09T08:40:09-04:00 {alloc_id="0e0ade1b-9ed1-2928-3c57-b2205cc5d6ca", dc="wee-dev", group="fabio", instance="weelxavt01
1d", job="fabio", namespace="services", source="test", task="fabio"} level=info ts=2024-04-09T12:40:09.027543776Z caller=targ
et_group.go:128 msg="added Docker target" containerID=33782221390e44ac72bcec36d3afab82cb150de040c2d4aabe0ff06c6dda886a
2024-04-09T08:40:09-04:00 {dc="wee-dev", instance="weelxavt011d", source="test"} level=info ts=2024-04-09T12:40:09.187221626Z
 caller=target.go:132 target=docker/33782221390e44ac72bcec36d3afab82cb150de040c2d4aabe0ff06c6dda886a msg="finished transferri
ng logs" written=61 container=33782221390e44ac72bcec36d3afab82cb150de040c2d4aabe0ff06c6dda886a

relabel_configs is for overwriting labels, I believe. if you are looking to drop logs, try the drop action (see drop | Grafana Loki documentation)