rundeck-plugins / docker

Providers for docker
28 stars 23 forks source link

Support docker run --mount #25

Open djeeg opened 6 years ago

djeeg commented 6 years ago

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!