File tree Expand file tree Collapse file tree 1 file changed +17
-5
lines changed Expand file tree Collapse file tree 1 file changed +17
-5
lines changed Original file line number Diff line number Diff line change 33
33
34
34
Layers are numbered in chronological order
35
35
36
+ If a dockerfile or a base image spec is available, grouping could be done based on the
37
+ information gathered from those sources.
38
+
39
+ layers that are present in the base image will be grouped as *_base_*
40
+ layers that are not present in the base image will be grouped as *_addon_*
41
+
42
+
43
+
36
44
Usage:
37
45
38
- scan_docker_image_slim.py [-h] imagespec [--grouping=group_end:group_name,group_end:group_name]
46
+ scan_docker_image_slim.py [-h] imagespec [--grouping=group_end:group_name,group_end:group_name] | [--dockerfile=Dockerfile | --base-image=baseimagespec]
39
47
40
48
positional arguments:
41
- imagespec Container image tag, e.g. repository/imagename:version
49
+ imagespec Container image tag, e.g. repository/imagename:version
42
50
43
51
optional arguments:
44
- -h, --help show this help message and exit
45
-
46
- --grouping=group_end:group_name,group_end:group_name specify layer grouping
52
+ -h, --help show this help message and exit
53
+ --grouping GROUPING Group layers into user defined provect versions (can't be used with --base-image)
54
+ --base-image BASE_IMAGE
55
+ Use base image spec to determine base image/layers (can't be used with --grouping or
56
+ --dockerfile)
57
+ --dockerfile DOCKERFILE
58
+ Use Dockerfile to determine base image/layers (can't be used with --grouping or ---base-image)
47
59
48
60
'''
49
61
You can’t perform that action at this time.
0 commit comments