Skip to content
This repository was archived by the owner on Jul 18, 2025. It is now read-only.

Commit d7f3430

Browse files
author
Mano Marks
authored
Merge pull request #405 from mariosnikolaou/patch-1
Fix markdown code formatting and link
2 parents 2abddfe + 3f9957d commit d7f3430

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

security/cgroups/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ You will complete the following steps as part of this lab.
1313
- [Step 1 - cgroups and the Docker CLI](#cli)
1414
- [Step 2 - Max-out two CPUs](#cpu_max)
1515
- [Step 3 - Set CPU affinity](#cpu_affinity)
16-
- [Step 4 - CPU share constraints](#cpu-share)
16+
- [Step 4 - CPU share constraints](#cpu_share)
1717
- [Step 5 - Docker Compose and cgroups](#compose)
1818
- [Step 6 - Preventing a fork bomb](#fork_bomb)
1919

@@ -187,7 +187,7 @@ In this step you will use the `docker run` command with the `--cpu-shares` flag
187187
2. Start the second container with 256 CPU shares.
188188

189189
```
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
191191
```
192192

193193
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
196196
$ sudo docker ps
197197
198198
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
201201
```
202202

203203
4. View the output of `htop`.

0 commit comments

Comments
 (0)