The Docker CLI
Go to file
Sebastiaan van Stijn 1f57f07070 Improve validation for volume specs
The current validation only checked for the
number of elements in the volume-spec, however,
did not validate if the elements were empty.

Because of this, an empty volume-spec (""),
or volume spec only containing separators ("::")
would not be invalidated.

This adds a simple check for empty elements in
the volume-spec, and returns an error if
the spec is invalid.

A unit-test is also added to verify the behavior.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2016-12-19 01:50:08 +01:00
command Merge pull request #28629 from yongtang/28581-secret-create-input 2016-12-18 03:04:10 +01:00
compose/convert Improve validation for volume specs 2016-12-19 01:50:08 +01:00
flags Add for String 2016-11-03 16:15:26 +08:00
trust cli: Split out GetNotaryRepository and associated functions 2016-12-14 10:49:32 -08:00
cobra.go exit with status 1 if help is called on an invalid command. 2016-11-23 15:13:58 -05:00
error.go Remove old cli framework. 2016-08-25 13:09:04 -04:00
required.go fix typos 2016-07-05 20:42:17 +08:00