The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 802 - File: showthread.php PHP 7.2.19-0ubuntu0.18.04.1 (Linux)
File Line Function
/showthread.php 802 errorHandler->error

Current time: 07-16-2019, 04:43 PM Hello There, Guest! (LoginRegister)

Post Reply 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
one vps, multiple docker images?
03-09-2018, 01:59 AM
Post: #1
one vps, multiple docker images?
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="" -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 ( 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:

-p 4000:80

... 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?
Find all posts by this user
Quote this message in a reply
Post Reply 

Messages In This Thread
one vps, multiple docker images? - ch604 - 03-09-2018 01:59 AM

Forum Jump:

User(s) browsing this thread: 1 Guest(s)