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

img pull not running without sudo #267

Open nilbro opened 4 years ago

nilbro commented 4 years ago

I have installed the tool according to: https://github.com/genuinetools/img/releases. However I am unable to execute certain img commands like img pull.

While executing img pull hello-world, I get the following error:

nsenter: USER is unset: No such file or directory

Here are the versions:

img: version : v0.5.7 git hash : d14bb92 go version : go1.11.10 go compiler : gc platform : linux/amd64

runc version 1.0.0-rc9+dev commit: 46def4cc4cb7bae86d8c80cedd43e96708218f0a spec: 1.0.1-dev

go version go1.12 linux/amd64

I am able to execute sudo img pull hello-world

Note: I am running this in a Docker container.

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

Issue Label Bot is not confident enough to auto-label this issue. See dashboard for more details.

nilbro commented 4 years ago

Any updates regarding this?

kekoav commented 4 years ago

@nilbro What container are you running this in? Does the Dockerfile look similar to this? https://github.com/genuinetools/img/blob/master/Dockerfile