nix2container icon indicating copy to clipboard operation
nix2container copied to clipboard

Image Manifest Metadata Lost

Open clushie opened this issue 1 year ago • 2 comments

Thank you for nix2container.

If I'm using pullImage and check the json it doesn't contain data like Env or Labels or Cmd I believe.

Which is sometimes useful information when packaging a docker image.

clushie avatar Feb 19 '24 14:02 clushie

Yes, it would be nice and this should be pretty to add: https://github.com/nlewo/containers-image-nix/blob/9d7f33ef0058f4df4c0912025f43c758a3289d76/nix/image.go#L150

nlewo avatar Feb 19 '24 20:02 nlewo

Thanks for pointing me to the right line, I was already reading the NewImageFromDir func today, but didn't notice the obvious todo. I'll see if I can make a working PR tomorrow.

clushie avatar Feb 19 '24 20:02 clushie