rundeck-plugins/docker

Support docker run --mount

djeeg opened this issue · 0 comments

djeeg commented

Please add "mount" here
https://github.com/rundeck-plugins/docker/blob/master/docker-container/contents/run-image#L34
(not sure if you accept contributions)

https://docs.docker.com/storage/bind-mounts/

Originally, the -v or --volume flag was used for standalone containers and the --mount flag was used for swarm services. However, starting with Docker 17.06, you can also use --mount with standalone containers. In general, --mount is more explicit and verbose.

To do something like this

--mount type=volume,volume-driver=cloudstor:azure,source=mysql,volume-opt=share=mysql,destination=/var/backups

Thanks!