Im currently running WPT agents in docker containers on VPSes at a remote location, but am only able to start one docker container per VPS. Here is the command I used to create the original container:
docker run -d --restart always -e SERVER_URL="http://mydomain.com/work/" -e LOCATION="Europe" -e NAME="Docker Test" --cap-add=NET_ADMIN wptagent
This is working great, and is persistent on reboot. I have three VPSes and one container each, so three test nodes. But, if I start a second container on each server with the same command, the /install/ info page on the master server (mydomain.com/install) still only lists the original number of VPSes I have set up (3) as listening for the Europe location. I tried redirecting a different port to 80 by adding:
… to the container create command, but this doesn’t affect the /install/ count of listeners. I even altered the NAME variable, to no effect.
It seems such a waste to have these relatively beefy VPSes (4 core 4G RAM) set up and only have one worker per VPS; I feel they should be able to handle at least three or four apiece. How can I start several wptagent docker images on the same server and have them be unique listeners?