Add docker run/create support multiple volume driver#16513
Closed
coolljt0725 wants to merge 1 commit intomoby:masterfrom
Closed
Add docker run/create support multiple volume driver#16513coolljt0725 wants to merge 1 commit intomoby:masterfrom
coolljt0725 wants to merge 1 commit intomoby:masterfrom
Conversation
Signed-off-by: Lei Jitang <[email protected]>
Member
Member
|
-1 on having the driver name in the reference. |
Contributor
|
Sorry, also -1 on having the driver name appear in the reference. To give a bit of explanation: we'd ideally like the driver to use to be part of a "late-binding" definition, potentially defined by the operator rather than by the client starting the container. For example, a volume labelled "red" would be managed by driver "square". We may or may not pursue down this road, but we definitely would like to avoid drivers to appear here. Sorry! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Signed-off-by: Lei Jitang [email protected]
This is a original design of support multiple volume driver on docker run/create cli and waiting for some feedback from the community.
The
drivershould be a part of volume identifier, I think the user should aware what driver the volume used, since different driver have different feature and store the data in different place. In this way user can use multiple volume driver in a singledocker run/createcli anddifferent volume driver can have the same volume name.
Use the sytax
name@driver:/destas the volume identifier as @srust 's proposal.Here is the example.
If no driver specified in the volume identifier, use default driver which is specified by
--volume-driver, if no, use defaultlocalthe
docker volumecli should usename@driver, if no driver specified, use defaultlocalFor more information see #15997