Skip to content

Commit f60a256

Browse files
authored
Merge pull request wsargent#167 from xsoh/patch-1
Replace `-ti` with `-it` to unify it in the Readme
2 parents 509c3d6 + c458d5d commit f60a256

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -142,13 +142,13 @@ You can limit CPU, either using a percentage of all CPUs, or by using specific c
142142
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 <https://goldmann.pl/blog/2014/09/11/resource-management-in-docker/#_cpu> for more:
143143

144144
```
145-
docker run -ti -c 512 agileek/cpuset-test
145+
docker run -it -c 512 agileek/cpuset-test
146146
```
147147

148148
You can also only use some CPU cores using [`cpuset-cpus`](https://docs.docker.com/engine/reference/run/#/cpuset-constraint). See <https://agileek.github.io/docker/2014/08/06/docker-cpuset/> for details and some nice videos:
149149

150150
```
151-
docker run -ti --cpuset-cpus=0,4,6 agileek/cpuset-test
151+
docker run -it --cpuset-cpus=0,4,6 agileek/cpuset-test
152152
```
153153

154154
Note that Docker can still **see** all of the CPUs inside the container -- it just isn't using all of them. See <https://github.com/docker/docker/issues/20770> for more details.
@@ -818,7 +818,7 @@ docker run --rm httpd cat /usr/local/apache2/conf/httpd.conf > httpd.conf
818818
vim httpd.conf
819819

820820
# start container with modified configuration
821-
docker run --rm -ti -v "$PWD/httpd.conf:/usr/local/apache2/conf/httpd.conf:ro" -p "80:80" httpd
821+
docker run --rm -it -v "$PWD/httpd.conf:/usr/local/apache2/conf/httpd.conf:ro" -p "80:80" httpd
822822
```
823823

824824
## Contributing

0 commit comments

Comments
 (0)