-
Notifications
You must be signed in to change notification settings - Fork 16
Open
Description
At the moment, data volume containers are named as a derivative of the original container name: containerName.upper() + '_DATA'
Would it be useful to optionally allow the creation and/or use of specifically named data volume containers?
I can imagine four cases:
- current default: when running
dmysql-serverto create a sever named foo, create a data volume container named foo_DATA - using a pre-existing container (1): if we have
dmysql-server --volumes-fromto create a container foo, where--volumes-fromis a flag, then link to foo_DATA; - using a pre-existing container (2): what about if we don't want to automatically generate the named of the linked data volume container? Do we need another parameter, eg
--data-volume NAMEthat runs as--volumes-from NAMEas part ofrunContainer()? In this case, should we require--volumes-from --data-volume NAME? What should happen if--volumes-fromflag is not set (that is, only--data-volume NAMEis supplied)? Or should--data-volume NAMEforce the setting of--volumes-fromas true? - creating a custom named data container: again using eg
--data-volume NAME, rather than runningcreateVolume(containerName.upper() + '_DATA')we runcreateVolume(NAME)?
If we take this approach, is --data-volume NAME sensible? Or should it be called something else? --data-volume-name NAME ?
Metadata
Metadata
Assignees
Labels
No labels