title: Using load testing app in docker
body: <p>I have this simple node socker seerver as follows:</p>
  
  <pre><code>var ws = require("nodejs-websocket")
  var connectionCount = 0;
  console.info("Node websocket started @ 8002");
  
  var server = ws.createServer(function (conn) {;
      console.log("New connection", ++connectionCount);
      conn.on("close", function (code, reason) {
          console.log("Connection closed")
      });
  }).listen(8002);
  </code></pre>
  
  <p>Now I want to hit this server from machines. So to mimic these machines, I am using docker. I want to create around 10 different docker containers which will hit my server.</p>
  
  <p>I want to hit the server from this docker container by using the load testing tool called thor (<a href="https://github.com/observing/thor" rel="nofollow noreferrer">https://github.com/observing/thor</a>), which can be run as easily as </p>
  
  <pre><code>thor --amount 1000 --messages 100 ws://localhost:8002
  </code></pre>
  
  <p>So I want to created 10 different docker container and each container should use this tool called thor and hit my server with </p>
  
  <pre><code>thor --amount 1000 --messages 100 ws://localhost:8002
  </code></pre>
  
  <p>How can I implement such dockor containers. </p>
  
  <p>PS: I am a novice here. </p>