I want to run as many Docker containers, as many I have CPU cores. So, I used command:
docker run --cpus="16" --link=mongo_dev:mongodb -d -p 8001:8000 --name app myapp
Also, I tried:
docker run --cpuset-cpus="0-15" --link=mongo_dev:mongodb -d -p 8001:8000 --name app myapp
But it runs only one container. Or did I misunderstand the use of this command? Is it real to run a multiple Docker containers in one machine? As I know, I can't use node.js cluster module to make multiple instances of my app in one Docker container because it runs only in 1 CPU core, does it?