Skip to content
Permalink
Browse files

Make docker container run on a single CPU and NOT 1/8th of all CPUs

  • Loading branch information...
Phill Phill
Phill authored and Phill committed Jun 26, 2018
1 parent 680f684 commit 90e16da7d186fcc1b6c15ca7f581574a0d7b3e83
Showing with 1 addition and 1 deletion.
  1. +1 −1 runInDocker.sh
@@ -14,4 +14,4 @@ FULL_IMAGE_NAME="$USER_NAME/$SHORT_NAME";
docker stop polling-vs-sockets || true
docker rm polling-vs-sockets || true

docker run --memory=1024m --cpus=0.25 --name polling-vs-sockets -d -p 8090:8080 -p 8081:8081 $FULL_IMAGE_NAME /startServerInDocker.sh
docker run --memory=1024m --cpuset-cpus=0 --name polling-vs-sockets -d -p 8090:8080 -p 8081:8081 $FULL_IMAGE_NAME /startServerInDocker.sh

0 comments on commit 90e16da

Please sign in to comment.
You can’t perform that action at this time.