Skip to content

Commit a4f3798

Browse files
authored
Update README.md
1 parent 0c32f5b commit a4f3798

File tree

1 file changed

+50
-0
lines changed

1 file changed

+50
-0
lines changed

docker/cheatsheet/README.md

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ Cheatsheets can be particularly helpful when learning a new tool or technology,
2121
- 🧪 [Image Transfer Commands](#image-transfer-commands)
2222
- 🏗️ [Builder Main Commands](#builder-main-commands)
2323
- ⚙️ [The Docker CLI](#the-docker-cli)
24+
- 🧰 [Docker Security](#docker-security)
2425
- 🧑‍🤝‍🧑 [Contributors](#contributors)
2526
- 💬 [Support and Community](#support-and-community)
2627
- 👉 [References](#references)
@@ -552,6 +553,55 @@ To kill all running containers
552553
docker kill $(docekr ps -q )
553554
```
554555

556+
## Docker Security
557+
558+
### Docker Scout
559+
560+
Command line tool for Docker Scout:
561+
562+
```
563+
docker scout
564+
```
565+
566+
Analyzes a software artifact for vulnerabilities
567+
568+
```
569+
docker scout cves [OPTIONS] IMAGE|DIRECTORY|ARCHIVE
570+
```
571+
572+
Display vulnerabilities from a docker save tarball
573+
574+
```
575+
docker save redis > redis.tar
576+
```
577+
578+
Display vulnerabilities from an OCI directory
579+
580+
```
581+
skopeo copy --override-os linux docker://alpine oci:redis
582+
```
583+
584+
Export vulnerabilities to a SARIF JSON file
585+
586+
```
587+
docker scout cves --format sarif --output redis.sarif.json redis
588+
```
589+
590+
Comparing two images
591+
592+
```
593+
docker scout compare --to redis:6.0 redis:6-bullseye
594+
```
595+
596+
Displaying the Quick Overview of an Image
597+
598+
```
599+
docker scout quickview redis:6.0
600+
```
601+
602+
603+
604+
555605

556606
## Contributors
557607

0 commit comments

Comments
 (0)