<p>you create a Docker Swarm stack file:</p>

<pre><code>---
version: '3.1'

services:   
  ubuntu:
    image: ubuntu # or your custom Docker image
      deploy:
        replicas: 10000
</code></pre>

<p>Then, with <code>docker stack</code> you can run your 10000 Ubuntu's on one or - probably better in this case - a set of Swarm hosts. This could be bare metal or AWS. Enjoy!</p>

<p>For MAC address is very interesting question which I hope other colleagues here can answer. Geolocation should be no problem as this is AFAIK a system setting - virtual OS does not implement a physical GPS sensor.</p>

<p><a href="https://docs.docker.com/engine/reference/run/#network-settings" rel="noreferrer">Docs</a> give an example how to set a fixed MAC address on <code>docker run</code> - possibly this can be translated to the stack YML file as well.</p>

<pre><code>docker run --mac-address=".." ...
</code></pre>

CC BY-SA 3.0
2017-11-14T12:15:57.450Z
2017-11-14T14:54:27.450Z
2017-11-14T14:54:27.450Z
Ta Mu
<p>What would be the best way to emulate (or really to instantiate) a large number of hosts / virtual machines / docker containers in the cloud?</p>

<p>Assume I want to run a scenario where 10,000 hosts are running the same application. Is there a cloud service which provides the ability to  "clone" a single host to 10K instances? Is there a way to configure slight changes in those hosts (in terms of Geo location / IP / hostname / MAC address)?</p>

<docker><amazon-ec2><cloud><vmware>
Large number of host emulation
mkholod
# Large number of host emulation

(Asked by: username_0 on 2017-11-14)

What would be the best way to emulate (or really to instantiate) a large number of hosts / virtual machines / docker containers in the cloud?

Assume I want to run a scenario where 10,000 hosts are running the same application. Is there a cloud service which provides the ability to "clone" a single host to 10K instances? Is there a way to configure slight changes in those hosts (in terms of Geo location / IP / hostname / MAC address)?

**Tags:** docker, amazon-ec2, cloud, vmware


---

## 1 answers

### Answer by username_1 on 2017-11-14. Score: 6

you create a Docker Swarm stack file:
---
version: '3.1'

services:   
  ubuntu:
    image: ubuntu # or your custom Docker image
      deploy:
        replicas: 10000

Then, with docker stack you can run your 10000 Ubuntu's on one or - probably better in this case - a set of Swarm hosts. This could be bare metal or AWS. Enjoy!
For MAC address is very interesting question which I hope other colleagues here can answer. Geolocation should be no problem as this is AFAIK a system setting - virtual OS does not implement a physical GPS sensor.
Docs give an example how to set a fixed MAC address on docker run - possibly this can be translated to the stack YML file as well.
docker run --mac-address=".." ...


---

