Re: Can't run shell script in docker container

2021-09-03 Thread 'Björn Pedersen' via Jenkins Users
How are you starting the container and run the script? From the locations it looks like a sh step in a pipeline. Then you should not mount jenkins_home or temp that way. Instead use a docker.image.inside step to run the script. It will do the correct mounting. (/tmp should mount

Re: Can't run shell script in docker container

2021-09-02 Thread Jerome Godbout
Are you sure the mount of tmp did work and not superseed by another default mount there? Maybe try to touch a new file from the docker and see if it show up into the original tmp folder. If so, it mean you might have permission problems instead. Make sure to allow rw for everyone on the file

Can't run shell script in docker container

2021-09-02 Thread Илья Скорик
Good day! I am trying to run a shell script in a docker container. The script is created on the host in the folder: */var/jenkins_home/workspace/Production/Test2@tmp* The container by default is starts with the following volumes: *--volume /var/jenkins_home:/var/jenkins_home:rw --volume