- Jul 16, 2018
If you have more than one vps or cloud server running , you don’t need to install the portainer container on every vps. You install one portainer container and on the other servers you can install portainer agent. When installed you have to setup the agent as endpoint in portainer and you can connect to the other docker setups. Here is the setup for the agent. This is tested by me and is working for 100%.
docker run -d \ --name=portaineragent \ --restart=always \ -p 9001:9001 \ -e PGID=1000 -e PUID=1000 \ -v /etc/localtime:/etc/localtime:ro \ -v /var/run/docker.sock:/var/run/docker.sock \ -v /var/lib/docker/volumes:/var/lib/docker/volumes \ portainer/agent