jenkinsci / docker-swarm-plugin

Jenkins plugin which allows to add a Docker Swarm as a cloud agent provider
https://plugins.jenkins.io/docker-swarm/
MIT License
55 stars 47 forks source link

There is no way to add "--mount" into parameters of Docker container #121

Open P1119r1m opened 1 year ago

P1119r1m commented 1 year ago

What feature do you want to see added?

I haven't found any option which allows user, for example, to mount (see "--mount" argument) NFS share like this:

docker run \
  --rm \
  --mount 'type=volume,volume-driver=local,volume-opt=type=nfs,volume-opt=device=127.0.0.1:/home/opt,dst=/home/opt,volume-opt=o=addr=127.0.0.1' \
  bash \
  bash -c "ls -la /home/opt"

Upstream changes

No response

P1119r1m commented 1 year ago

Dear all,

I would appreciate if you could suggest any way to mount NFS share using "docker-swarm-plugin" if this option is already implemented.

Thank you!

markixy commented 9 months ago

I also need to use nfs. I first mount nfs to the host, and then configure the Host Binds in the Docker Agent templates.