问题原文
原帖链接 · Thefeli73 · CC BY-SA 4.0
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 :)
已采纳解答
原帖链接 · Adarsha · CC BY-SA 4.0
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
摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。
