Is there a way to mount existing Docker named volumes? The docs at https://docs.drone.io/user-guide/pipeline/volumes/ only show host paths and temporary volumes.
Looking at the source https://github.com/drone/drone-runtime/blob/master/engine/spec.go#L174-L178 , it doesn’t seem like it’s possible to specify a named volume. I ended up using the
/var/lib/docker/volumes/volume-name/_data host path, but that’s obviously a hack.
@bradrydzewski Would you be interested in a PR adding named volumes support?
Also, you might want to update the docs here https://docs.drone.io/user-guide/pipeline/steps/#volumes , stating:
Mount host paths or named volumes. […] Note that named volumes are supported. If you would like to configure a named volume please consult our detailed volume documentation.
named volumes are supported. We call them Temporary Mounts and they can be used to ephemeral docker volumes to share data between pipeline steps. See https://docs.drone.io/user-guide/pipeline/volumes/
That’s kind of ambiguous, IMO, as by “named volumes” I understand “existing named volumes”, which is actually what I need.