Hi
I’m trying to use docker pipeline and its by default using the -u option, I want avoid that. Is there any way to prevent docker pipeline from using the -u option and only use the options I provide?
pipeline {
agent {
docker {
label ‘build-server’
image “image:2.3”
args ‘–privileged --group-add 122 -v /var/run/docker.sock:/var/run/docker.sock -v /usr/bin/docker:/usr/bin/docker -v /mnt/DISK1/my-user:/home/my-user -e USER=my-user -e UID=153192 -e GID=99’
}
I use the above but I jenkins when running adds the -u 153192:99 and this prevents my image from running.
thanks