Skip to content

Instantly share code, notes, and snippets.

@danmack
Last active April 19, 2019 15:56
Show Gist options
  • Save danmack/959647cb35afba7feb8fc7b3814f2a57 to your computer and use it in GitHub Desktop.
Save danmack/959647cb35afba7feb8fc7b3814f2a57 to your computer and use it in GitHub Desktop.
buildah podman skopeo rodeo
mega:~/src/cont$ podman inspect localhost/fc30b
[
{
"Id": "d49e72ff10298e8a50b33c3b3b451acd342146858b0e4354dea926d785839620",
"Digest": "sha256:cd3852ebf1ab5ce7751e9fd15bd09acb247147ba3f24a47fcc2998ee948feffd",
"RepoTags": [
"localhost/fc30b:latest"
],
"RepoDigests": [
"localhost/fc30b@sha256:cd3852ebf1ab5ce7751e9fd15bd09acb247147ba3f24a47fcc2998ee948feffd"
],
"Parent": "",
"Comment": "",
"Created": "2019-04-19T13:32:17.490411869Z",
"Config": {
"Env": [
"PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
"DISTTAG=f30container",
"FGC=f30",
"FBR=f30"
],
"Cmd": [
"/bin/bash"
],
"Labels": {
"maintainer": "Clement Verna <cverna@fedoraproject.org>"
}
},
"Version": "",
"Author": "",
"Architecture": "amd64",
"Os": "linux",
"Size": 632847446,
"VirtualSize": 632847446,
"GraphDriver": {
"Name": "overlay",
"Data": {
"LowerDir": "/home/mack/.local/share/containers/storage/overlay/9ede74f0229c67b9681d724f35a01327f7b875d274c8680d6595b86ecbceaf62/diff",
"MergedDir": "/home/mack/.local/share/containers/storage/overlay/59950566f7f723fb1582c9cb73772ef9bef642a41075c51336b049c357862270/merged",
"UpperDir": "/home/mack/.local/share/containers/storage/overlay/59950566f7f723fb1582c9cb73772ef9bef642a41075c51336b049c357862270/diff",
"WorkDir": "/home/mack/.local/share/containers/storage/overlay/59950566f7f723fb1582c9cb73772ef9bef642a41075c51336b049c357862270/work"
}
},
"RootFS": {
"Type": "layers",
"Layers": [
"sha256:9ede74f0229c67b9681d724f35a01327f7b875d274c8680d6595b86ecbceaf62",
"sha256:e0f8c3ba9bc3ae481f3e237cf10d7f6219afb6026c3fd9d5e25e9276b09850ac"
]
},
"Labels": {
"maintainer": "Clement Verna <cverna@fedoraproject.org>"
},
"Annotations": {},
"ManifestType": "application/vnd.oci.image.manifest.v1+json",
"User": "",
"History": [
{
"created": "2019-01-16T21:21:55.569693599Z",
"created_by": "/bin/sh -c #(nop) LABEL maintainer=Clement Verna <cverna@fedoraproject.org>",
"empty_layer": true
},
{
"created": "2019-01-16T21:21:55.720736034Z",
"created_by": "/bin/sh -c #(nop) ENV DISTTAG=f30container FGC=f30 FBR=f30",
"empty_layer": true
},
{
"created": "2019-04-03T22:20:35.563123262Z",
"created_by": "/bin/sh -c #(nop) ADD file:d5b01c093ed83e6d4233fefb8606265e8b8ff36c2e01dbefccfafba025b73ae6 in / "
},
{
"created": "2019-04-03T22:20:36.07932126Z",
"created_by": "/bin/sh -c #(nop) CMD [\"/bin/bash\"]",
"empty_layer": true
},
{
"created": "2019-04-19T13:32:17.490411869Z"
}
]
}
]
# so skopeo cannot copy / inspect buildah images, but, found this gem in the
# podman man-page:
#
# Podman uses Buildah(1) internally to create container images. Both
# tools share image (not container) storage, hence each can use or
# manipulate images (but not containers) created by the other.
# so i have some test images created with buildah, and I can see them with podman
# my goal is to figure out a way to copy them to another system(s) and use them
# as part of a build system I am working on for some products
mega:~/src/cont$ podman images
REPOSITORY TAG IMAGE ID CREATED SIZE
localhost/mack/made-alacritty latest 5d4407828df6 About an hour ago 3.14 GB
localhost/mack/alacritty-buildbase latest 70eaabfffc9b About an hour ago 1.63 GB
localhost/fc30b latest d49e72ff1029 2 hours ago 633 MB
docker.io/library/fedora 30 ad0d3c0bf762 2 weeks ago 311 MB
mega:~/src/cont$ podman image history localhost/fc30b
ID CREATED CREATED BY SIZE COMMENT
d49e72ff1029 2 hours ago 321.5MB
ad0d3c0bf762 2 weeks ago /bin/sh -c #(nop) CMD ["/bin/bash"] 321.5MB
<missing> 2 weeks ago /bin/sh -c #(nop) ADD file:d5b01c093ed83e6... 311.4MB
<missing> 3 months ago /bin/sh -c #(nop) ENV DISTTAG=f30container... 311.4MB
<missing> 3 months ago /bin/sh -c #(nop) LABEL maintainer=Clement... 311.4MB
mega:~/src/cont$ podman save -o ./fc30b.tar localhost/fc30b
mega:~/src/cont$ tar tvf fc30b.tar
-r--r--r-- 0/0 311394304 1969-12-31 18:00 9ede74f0229c67b9681d724f35a01327f7b875d274c8680d6595b86ecbceaf62.tar
-r--r--r-- 0/0 321451008 1969-12-31 18:00 e0f8c3ba9bc3ae481f3e237cf10d7f6219afb6026c3fd9d5e25e9276b09850ac.tar
-r--r--r-- 0/0 1132 1969-12-31 18:00 d49e72ff10298e8a50b33c3b3b451acd342146858b0e4354dea926d785839620.json
l--------- 0/0 0 1969-12-31 18:00 9ede74f0229c67b9681d724f35a01327f7b875d274c8680d6595b86ecbceaf62/layer.tar -> ../9ede74f0229c67b9681d724f35a01327f7b875d274c8680d6595b86ecbceaf62.tar
-r--r--r-- 0/0 3 1969-12-31 18:00 9ede74f0229c67b9681d724f35a01327f7b875d274c8680d6595b86ecbceaf62/VERSION
-r--r--r-- 0/0 73 1969-12-31 18:00 9ede74f0229c67b9681d724f35a01327f7b875d274c8680d6595b86ecbceaf62/json
l--------- 0/0 0 1969-12-31 18:00 ba40cd54331e62fa80ce25dad4215c6e7db0dcbe9639a603202838a4972f9ee0/layer.tar -> ../e0f8c3ba9bc3ae481f3e237cf10d7f6219afb6026c3fd9d5e25e9276b09850ac.tar
-r--r--r-- 0/0 3 1969-12-31 18:00 ba40cd54331e62fa80ce25dad4215c6e7db0dcbe9639a603202838a4972f9ee0/VERSION
-r--r--r-- 0/0 518 1969-12-31 18:00 ba40cd54331e62fa80ce25dad4215c6e7db0dcbe9639a603202838a4972f9ee0/json
-r--r--r-- 0/0 97 1969-12-31 18:00 repositories
-r--r--r-- 0/0 275 1969-12-31 18:00 manifest.json
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment