1

I can pull down an image with podman pull

podman pull alpine:3

This currently pulls the image down as,

REPOSITORY                TAG             IMAGE ID      CREATED         SIZE
docker.io/library/alpine  3               14119a10abf4  5 weeks ago     5.87 MB

Is there anyway to save that image for future reference as localhost/foo?

Evan Carroll
  • 28,578
  • 45
  • 164
  • 290

2 Answers2

2

Use podman tag:

podman tag alpine:3 localhost/foo

You can also save any local image by sha to a different name,

podman tag 0159f8576312 localhost/foo
Evan Carroll
  • 28,578
  • 45
  • 164
  • 290
Stephen Kitt
  • 411,918
  • 54
  • 1,065
  • 1,164
0

One method would be to launch it into a container and commit it,

podman run -ti alpine:3 /bin/sh
podman commit $(podman container ls -lq) localhost/foo

Alternatively, you can change buildah from and buildah commit which doesn't require starting a container,

buildah commit $(buildah from alpine:3) localhost/foo

Not sure if there is a faster way.

Evan Carroll
  • 28,578
  • 45
  • 164
  • 290