2

I have a few containers (running various services) on my ubuntu server and i manage those containers via portainer, which is also one of these containers. I would like to also manage a pihole container (running on a different server (raspberry pi)) from that same portainer interface. The machines are on the same local, private, network.

I've read about people proxying/exposing the docker unix socket over tcp etc but that seems risky and unsecure and more like a workaround. I tried reading up on docker swarms but that seems like a different use case but i could be wrong.

Any help is very appreciated :)

1
  • What else would you use, if not TCP? Jan 31, 2021 at 17:23

1 Answer 1

1

You can deploy portainer/agent and access it via the agent url

  portainer_agent:
    image: portainer/agent
    container_name: portainer-agent
    ports:
    - "9001:9001"
    volumes:
    - /var/run/docker.sock:/var/run/docker.sock
    - /var/lib/docker/volumes:/var/lib/docker/volumes
    restart: unless-stopped

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.