NVIDIA / enroot

A simple yet powerful tool to turn traditional container/OS images into unprivileged sandboxes.
Apache License 2.0
648 stars 94 forks source link

Option to import tarbar Image #108

Closed martialblog closed 2 years ago

martialblog commented 3 years ago

Hey,

I've been thinking about an option to import tarbar Image with archive://.

The rationale behind it is that you might not have access to Docker/Podman on the same node which runs enroot; or maybe there is no Container Registry available.

This way you could develop an Image, podman/docker save imagename > my-image.tar it, copy it to where enroot is and then enroot import archive://home/hans/my-image.tar.

Yes? No? Maybe?

I guess one could also pre-generate the SquashFS for enroot :thinking:

3XX0 commented 3 years ago

docker save format is kind of a pain to work with and there is no real benefit vs just using the dockerd:// scheme. This would add a lot of complexity for no real benefit, you can just have enroot installed on your build node and copy over the squashfs.

martialblog commented 3 years ago

Hm yeah, you mean stitching all the layers back together right?