genuinetools / img

Standalone, daemon-less, unprivileged Dockerfile and OCI compatible container image builder.
https://blog.jessfraz.com/post/building-container-images-securely-on-kubernetes/
MIT License
3.89k stars 230 forks source link

Need to pull image before unpack #244

Open pwFoo opened 5 years ago

pwFoo commented 5 years ago

Hi,

I tested img because I searching for a small binary to just pull and unpack docker images.

If the image isn't pulled before I get an error message during unpack.

./img unpack alpine
getting image docker.io/library/alpine:latest from image store failed: image "docker.io/library/alpine:latest": not found

It works fine with pull before unpack:

./img pull alpine  
Pulling alpine...
Pulled: sha256:3da751655a0590f6dc9c8e4724b400f78f30d417b2a7bb590e9fe2c398221be3
Size: 2.63MiB

./img unpack alpine
Successfully unpacked rootfs for alpine to: /home/rancher/rootfs

If the image isn't pulled before "unpack" should try to pull it instead of an error?

issue-label-bot[bot] commented 5 years ago

Issue-Label Bot is automatically applying the label enhancement to this issue, with a confidence of 0.52. Please mark this comment with :thumbsup: or :thumbsdown: to give our bot feedback!

Links: app homepage, dashboard and code for this bot.