File tree Expand file tree Collapse file tree 3 files changed +19
-1
lines changed Expand file tree Collapse file tree 3 files changed +19
-1
lines changed Original file line number Diff line number Diff line change @@ -28,6 +28,12 @@ print(
28
28
f " Digest for { str (my_image)} : " + \
29
29
my_image.get_digest(auth = {}) # sha256:1ff6c18fbef2045af6b9c16bf034cc421a29027b800e4f9b68ae9b1cb3e9ae07
30
30
)
31
+
32
+ # Inspect the container image image for a more consolidated summary
33
+ print (
34
+ f " Inspect for { str (my_image)} : \n " + \
35
+ str (my_image.inspect(auth = {})) # Same as skopeo inspect docker://registry.k8s.io/pause:3.5
36
+ )
31
37
```
32
38
33
39
To run this example, simply execute the following from the root of this repository
Original file line number Diff line number Diff line change @@ -37,6 +37,12 @@ Here is a quick motivating example for how you might use ``containerimage-py`` i
37
37
my_image.get_digest(auth = {}) # sha256:1ff6c18fbef2045af6b9c16bf034cc421a29027b800e4f9b68ae9b1cb3e9ae07
38
38
)
39
39
40
+ # Inspect the container image image for a more consolidated summary
41
+ print (
42
+ f " Inspect for { str (my_image)} : \n " + \
43
+ str (my_image.inspect(auth = {})) # Same as skopeo inspect docker://registry.k8s.io/pause:3.5
44
+ )
45
+
40
46
Installation
41
47
============
42
48
Original file line number Diff line number Diff line change 17
17
from image .containerimage import ContainerImage
18
18
19
19
# Initialize a ContainerImage given a tag reference
20
- my_image = ContainerImage ("registry.k8s. io/pause:3.5 " )
20
+ my_image = ContainerImage ("ghcr. io/matejvasek/builder-ubi8-base:latest " )
21
21
22
22
# Display some basic information about the container image
23
23
print (
28
28
f"Digest for { str (my_image )} : " + \
29
29
my_image .get_digest (auth = {}) # sha256:1ff6c18fbef2045af6b9c16bf034cc421a29027b800e4f9b68ae9b1cb3e9ae07
30
30
)
31
+
32
+ # Inspect the container image image for a more consolidated summary
33
+ print (
34
+ f"Inspect for { str (my_image )} :\n " + \
35
+ str (my_image .inspect (auth = {})) # Same as skopeo inspect docker://registry.k8s.io/pause:3.5
36
+ )
You can’t perform that action at this time.
0 commit comments