Docker Scout overview - Understand what's in your container

ssuserfb6acb 30 views 45 slides Jun 23, 2024
Slide 1
Slide 1 of 45
Slide 1
1
Slide 2
2
Slide 3
3
Slide 4
4
Slide 5
5
Slide 6
6
Slide 7
7
Slide 8
8
Slide 9
9
Slide 10
10
Slide 11
11
Slide 12
12
Slide 13
13
Slide 14
14
Slide 15
15
Slide 16
16
Slide 17
17
Slide 18
18
Slide 19
19
Slide 20
20
Slide 21
21
Slide 22
22
Slide 23
23
Slide 24
24
Slide 25
25
Slide 26
26
Slide 27
27
Slide 28
28
Slide 29
29
Slide 30
30
Slide 31
31
Slide 32
32
Slide 33
33
Slide 34
34
Slide 35
35
Slide 36
36
Slide 37
37
Slide 38
38
Slide 39
39
Slide 40
40
Slide 41
41
Slide 42
42
Slide 43
43
Slide 44
44
Slide 45
45

About This Presentation

Understand what's in your Docker container


Slide Content

What’s in My Container?
Yves Brissaud
Docker Scout CLI and CI to the Rescue
Senior Software Engineer | Docker
! @_crev_

Yves Brissaud
Senior Software Engineer | Docker
! @_crev_

00
Intro

Materials
00 Intro
Slides:
https://speakerdeck.com/eunomie/scout
Git Repository:
https://github.com/eunomie/dc23hello

01
Code
Update
https://www.pexels.com/photo/close-up-photo-of-gray-typewriter-952594/

01 Code Update
Hello !

•Render as HTML
•Read input as markdown
01 Code Update
Propose Changes

•Build
•Test
•Review
•Merge
•Deploy
•…
01 Code Update
Pull Request

01 Code Update
A vulnerability has been
found before to be
deployed in production!
https://www.pexels.com/photo/red-led-traffic-cone-2743739/

01 Code Update
Back to code, branch,
review, …
https://www.pexels.com/photo/black-and-white-roller-coaster-106155/

01 Code Update
How to do it better?
Shift left
Find issues earlier
In developer friendly manner
Without wasting time

02
Continuous
Integration
https://www.pexels.com/photo/business-commerce-computer-delivery-263194/

•As a GitHub Action
02 Continuous Integration
Docker Scout

•As a GitHub Action
•Comment Pull Request
02 Continuous Integration
Docker Scout

02 Continuous Integration
How to know it, before the CI?
Shift left
Reduce time to discover issue

03
CLI
https://www.pexels.com/photo/person-in-brown-long-sleeve-shirt-typing-on-a-keyboard-9553909/

•quickview
03 CLI
Docker Scout CLI

•quickview
•cves
03 CLI
Docker Scout CLI

•quickview
•cves
•With details
03 CLI
Docker Scout CLI

•quickview
•cves
•With details
•By packages
03 CLI
Docker Scout CLI

03 CLI
Why not be even faster?

•file system
03 CLI
Docker Scout CLI

03 Cli
Can I see the impact of my changes?
Reduce noise
Straight to the decisions

04
Compare
https://www.pexels.com/photo/light-city-landscape-red-13097303/

•cli
04 Compare
Compare Images

•cli
•GitHub Action
04 Compare
Compare Images

•Base image changes
04 Compare
Compare more

04 Compare
How can I compare to my
staging/production/…
image?

05
Environments
https://www.pexels.com/photo/gray-steel-file-cabinet-1370294/

•GitHub Action
05 Environments
Record Image to an Environment

•GitHub Action
•cli
05 Environments
Record Image to an Environment

05 Environments
Compare to an Environment

05 Environments
Could it be smarter?
Reduce noise
Straight to the decisions
Decide for me

06
Policies
https://www.pexels.com/photo/wooden-stamp-on-ink-pad-placed-on-desk-3839649/

•quickview
06 Policies
Docker Scout CLI

•quickview
•policy
06 Policies
Docker Scout CLI

•quickview
•policy
•compare
06 Policies
Docker Scout CLI

•quickview
•policy
•compare
06 Policies
Docker Scout CLI
Is my image
better or worse?

06 Policies
Docker Scout GitHub Action

07
Summary
https://www.pexels.com/photo/wooden-stamp-on-ink-pad-placed-on-desk-3839649/

docker scout quickview IMAGE
docker scout cves IMAGE
docker scout cves --details IMAGE
docker scout compare IMAGE --to IMAGE
docker scout environment ENV IMAGE
docker scout compare IMAGE --to-env ENV
docker scout policy IMAGE
local://
registry://
image://
fs://
Docker Scout CLI
07 Summary
Quick overview of an image
List of all vulnerabilities of an image
with details
Compare two images
Record image to environment
Compare image to environment
Details about policies
Local only images
Registry only images
Local then registry if not found
Local file system

uses: docker/scout-action@main
with:
command: quickview
command: cves
command: compare
Docker Scout GitHub Action
07 Summary
Quick overview of an image
List of all vulnerabilities of an image
Compare two images

07 Summary
Resources
https://docs.docker.com/scout/
https://docs.docker.com/engine/reference/commandline/scout/
https://github.com/docker/scout-cli
https://github.com/docker/scout-action

THANK YOU
Tags