mirror of
https://github.com/docker/cli.git
synced 2026-01-13 18:22:35 +03:00
Add 'consistent', 'cached', and 'delegated' mode flags
This adds 'consistency' mode flags to the mount command line argument. Initially, the valid 'consistency' flags are 'consistent', 'cached', 'delegated', and 'default'. Signed-off-by: David Sheets <dsheets@docker.com> Signed-off-by: Jeremy Yallop <yallop@docker.com>
This commit is contained in:
committed by
Vincent Demeester
parent
7fa9161585
commit
ce42bb22a3
@@ -95,6 +95,8 @@ func (m *MountOpt) Set(value string) error {
|
||||
if err != nil {
|
||||
return fmt.Errorf("invalid value for %s: %s", key, value)
|
||||
}
|
||||
case "consistency":
|
||||
mount.Consistency = mounttypes.Consistency(strings.ToLower(value))
|
||||
case "bind-propagation":
|
||||
bindOptions().Propagation = mounttypes.Propagation(strings.ToLower(value))
|
||||
case "volume-nocopy":
|
||||
|
||||
Reference in New Issue
Block a user