Open othomann opened 5 years ago
Issue Label Bot is not confident enough to auto-label this issue. See dashboard for more details.
note that if I do: img version
, it works.
Were you ever able to solve this? I'm running into the same issue, with the same error, only difference is I've stepped up to 0.5.11
sh '''
sudo apt-get update -y \\
&& sudo apt-get install -y uidmap \\
&& echo "Downloading img" \\
&& curl -fSL "https://github.com/genuinetools/img/releases/download/v0.5.11/img-linux-amd64" -o "/usr/local/bin/img" \\
&& echo "cc9bf08794353ef57b400d32cd1065765253166b0a09fba360d927cfbd158088 /usr/local/bin/img" | sha256sum -c - \\
&& chmod a+x "/usr/local/bin/img"
'''
sh 'img -v'
echo "img installed!"
I can install the img, but on building image throwing same error, any update on this?
got the fix
sudo apt-get update -y \\
&& sudo apt-get install -y uidmap \\
&& sudo apt-get install -y qemu-user-static \\
&& echo "Downloading img" \\
&& curl -fSL "https://github.com/genuinetools/img/releases/download/v0.5.11/img-linux-amd64" -o "/usr/local/bin/img" \\
&& echo "cc9bf08794353ef57b400d32cd1065765253166b0a09fba360d927cfbd158088 /usr/local/bin/img" | sha256sum -c - \\
&& chmod a+x "/usr/local/bin/img"
Also configured the environment for Jenkins pipeline.
environment {
USER = "jenkins"
}
Hi, I installed img 0.5.7 on top of Ubuntu with the required packages as root. uname -a returns:
here is my script:
Unfortunately I always get this error
nsenter: USER is unset: Inappropriate ioctl for device
. I tried to search for a solution, but I didn't find anything useful. Any idea what could be wrong?Thanks for any pointers you might have.