This repository was archived by the owner on Jul 18, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ You will complete the following steps as part of this lab.
13
13
- [ Step 1 - cgroups and the Docker CLI] ( #cli )
14
14
- [ Step 2 - Max-out two CPUs] ( #cpu_max )
15
15
- [ Step 3 - Set CPU affinity] ( #cpu_affinity )
16
- - [ Step 4 - CPU share constraints] ( #cpu-share )
16
+ - [ Step 4 - CPU share constraints] ( #cpu_share )
17
17
- [ Step 5 - Docker Compose and cgroups] ( #compose )
18
18
- [ Step 6 - Preventing a fork bomb] ( #fork_bomb )
19
19
@@ -187,7 +187,7 @@ In this step you will use the `docker run` command with the `--cpu-shares` flag
187
187
2 . Start the second container with 256 CPU shares.
188
188
189
189
```
190
- $ sudo docker run -d --name container-2 --cpuset-cpus 0 --cpu-shares 256 cpu-stress
190
+ $ sudo docker run -d --name container-2 --cpuset-cpus 0 --cpu-shares 256 cpu-stress
191
191
```
192
192
193
193
3 . Verify that both containers are running with the ` docker ps ` command.
@@ -196,8 +196,8 @@ In this step you will use the `docker run` command with the `--cpu-shares` flag
196
196
$ sudo docker ps
197
197
198
198
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
199
- 725dc16fac5a cpu-stress "/bin/sh -c 'stress -" 2 minutes ago Up 2 minutes container-2
200
- f82f95757d3f cpu-stress "/bin/sh -c 'stress -" 2 minutes ago Up 2 minutes container-1
199
+ 725dc16fac5a cpu-stress "/bin/sh -c 'stress -" 2 minutes ago Up 2 minutes container-2
200
+ f82f95757d3f cpu-stress "/bin/sh -c 'stress -" 2 minutes ago Up 2 minutes container-1
201
201
```
202
202
203
203
4 . View the output of ` htop ` .
You can’t perform that action at this time.
0 commit comments