img icon indicating copy to clipboard operation
img copied to clipboard

img pull not running without sudo

Open nilbro opened this issue 6 years ago • 3 comments

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.

nilbro avatar Nov 07 '19 09:11 nilbro

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

issue-label-bot[bot] avatar Nov 07 '19 09:11 issue-label-bot[bot]

Any updates regarding this?

nilbro avatar Nov 12 '19 09:11 nilbro

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

kekoav avatar Apr 23 '20 06:04 kekoav