Error creating external connectivity network

i am trying to deploy a portainer/agent stack with the recommended docker compose configuration as suggested in the official documentation (https://portainer.readthedocs.io/en/stable/agent.html), and it deploys and runs correctly on all the nodes except for 1.

on the node that fails, i check the error and it says:

starting container failed: error creating external connectivity network: could not find an available, non-overlapping IPv4 address pool among the defaults to assign to the network

this is strange because this is a latest installation of raspbian. and i have just installed docker using the script from the official raspberry pi website (https://www.raspberrypi.org/blog/docker-comes-to-raspberry-pi/). this is how docker has been set up on the other raspberry pi’s too (the other raspberry pi’s are working fine).

the docker compose file is:

version: '3.2'

services:
  agent:
    image: portainer/agent
    environment:
      AGENT_CLUSTER_ADDR: tasks.agent
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock
    ports:
      - target: 9001
        published: 9001
        protocol: tcp
        mode: host
    networks:
      - portainer_agent
    deploy:
      mode: global

networks:
  portainer_agent:
    driver: overlay