You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've been trying to figure out how to bypass the local container storage while building images and this is the only method I found:
user@linux:~/src/podman $ podman image list -a
REPOSITORY TAG IMAGE ID CREATED SIZE
localhost/podman-pause 4.7.1-1698265439 99fd9faf5de6 2 days ago 835 kB
docker.io/library/mongo-express 1.0.0 156c460699a5 9 days ago 265 MB
docker.io/library/mongo 7.0.2 ee3b4d1239f1 2 weeks ago 753 MB
docker.io/library/ubuntu 23.04 639282825872 3 weeks ago 72.8 MB
user@linux:~/src/podman $ podman build -t oci-archive:container-image.tar --squash-all .
STEP 1/1: FROM ubuntu:23.04
COMMIT oci-archive:container-image.tar
Getting image source signatures
Copying blob af056870e023 done |
Copying config a4dfa01cc9 done |
Writing manifest to image destination
-->
user@linux:~/src/podman $ podman image list -a
REPOSITORY TAG IMAGE ID CREATED SIZE
localhost/podman-pause 4.7.1-1698265439 99fd9faf5de6 2 days ago 835 kB
docker.io/library/mongo-express 1.0.0 156c460699a5 9 days ago 265 MB
docker.io/library/mongo 7.0.2 ee3b4d1239f1 2 weeks ago 753 MB
docker.io/library/ubuntu 23.04 639282825872 3 weeks ago 72.8 MB
In the example above, the Containerfile consists of a single FROM ubuntu:23.04. The output of this undocumented (?) form of podman build is similar to what one would get after running untagged podman build followed by podman save, except it never saves any images to ~/.local/share/containers/storage.
Since the manual already mentions podman push <image> oci-archive:<path> and podman run oci-archive:<path>, it would be nice if podman build was documented in a similar way (unless this is some sort of experimental feature that users are not supposed to use).
Feature request description
I've been trying to figure out how to bypass the local container storage while building images and this is the only method I found:
In the example above, the Containerfile consists of a single
FROM ubuntu:23.04
. The output of this undocumented (?) form ofpodman build
is similar to what one would get after running untaggedpodman build
followed bypodman save
, except it never saves any images to ~/.local/share/containers/storage.Since the manual already mentions
podman push <image> oci-archive:<path>
andpodman run oci-archive:<path>
, it would be nice ifpodman build
was documented in a similar way (unless this is some sort of experimental feature that users are not supposed to use).Suggest potential solution
No response
Have you considered any alternatives?
No response
Additional context
The text was updated successfully, but these errors were encountered: