I would start a maven build in docker. My command successfully run with my personal account but not run with jenkins account. Here is the command:
docker run -v /etc/hosts:/etc/hosts -v "$PWD":/usr/src/mymaven -v /mnt/storage/jenkins/settings.docker.xm l:/mnt/storage/jenkins /settings.docker.xml -w /usr/src/mymaven myimagejava /usr/src/mymaven /deployhelper.sh
With the jenkins user I get the following error
standard_init_linux.go:185: exec user process caused "no such file or directory"
the deployhelper.sh contains oly maven commands
Docker version: Server Version: 17.09.0-ce