rundeck-plugins / docker

Providers for docker
28 stars 23 forks source link

Support user option to docker run #14

Closed ryancurrah closed 6 years ago

ryancurrah commented 6 years ago

It would be nice if the docker run step would support the argumentuser. This way I can mount a directory from the Rundeck node and run the container as the same user running Rundeck. Otherwise the files will be will be owned by root which is the default user a container runs as unless set in the dockerfile. Also bump the version of the plugin.

-u, --user                      Username or UID (format: <name|uid>[:<group|gid>])
ryancurrah commented 6 years ago

Example of file on rundeck node being owned by root when created in a container

[rundeck@RND01 ~]$ pwd
/home/rundeck
[rundeck@RND01 ~]$ ls -ail deploy-virtual-machines-2157/
total 8
26556116 drwxr-x---.  3 rundeck rundeck   39 Dec 11 22:25 .
16903640 drwx------. 17 rundeck rundeck 4096 Dec 11 22:25 ..
 1995949 drwxr-xr-x.  6 root    root    4096 Dec 11 22:28 terraform-vsphere-deployvm