diff --git a/README.md b/README.md index 127158d..2d63181 100644 --- a/README.md +++ b/README.md @@ -142,13 +142,13 @@ You can limit CPU, either using a percentage of all CPUs, or by using specific c For example, you can tell the [`cpu-shares`](https://docs.docker.com/engine/reference/run/#/cpu-share-constraint) setting. The setting is a bit strange -- 1024 means 100% of the CPU, so if you want the container to take 50% of all CPU cores, you should specify 512. See for more: ``` -docker run -ti -c 512 agileek/cpuset-test +docker run -it -c 512 agileek/cpuset-test ``` You can also only use some CPU cores using [`cpuset-cpus`](https://docs.docker.com/engine/reference/run/#/cpuset-constraint). See for details and some nice videos: ``` -docker run -ti --cpuset-cpus=0,4,6 agileek/cpuset-test +docker run -it --cpuset-cpus=0,4,6 agileek/cpuset-test ``` Note that Docker can still **see** all of the CPUs inside the container -- it just isn't using all of them. See for more details. @@ -818,7 +818,7 @@ docker run --rm httpd cat /usr/local/apache2/conf/httpd.conf > httpd.conf vim httpd.conf # start container with modified configuration -docker run --rm -ti -v "$PWD/httpd.conf:/usr/local/apache2/conf/httpd.conf:ro" -p "80:80" httpd +docker run --rm -it -v "$PWD/httpd.conf:/usr/local/apache2/conf/httpd.conf:ro" -p "80:80" httpd ``` ## Contributing