-
Type:
Bug
-
Resolution: Not A Defect
-
Priority:
Minor
-
Component/s: docker-workflow-plugin
-
None
If I pull down a docker image (mcr.microsoft.com/dotnet/sdk:6.0) and run it, I'm able to execute `apt-get -y update` without issues. The same command inside Jenkins returns the following error:
E: List directory /var/lib/apt/lists/partial is missing. - Acquire (13: Permission denied)
Â
If I try to elevate my permissions by executing `su`, it works in my local docker image, but not in Jenkins. I get the error:Â
Password: su: Authentication failure
Â
The pipeline can be defined as follows:
node {
docker.image('mcr.microsoft.com/dotnet/sdk:6.0').inside {
stage('reproduction') {
sh 'apt-get -y update'
}
}
}
Â
Expections:
I would expect that this stage executes successfully. Subsequently, I'd expect to be able to run `apt-get install -y zip`.