DockerCLI/cli
Sebastiaan van Stijn 11869fa42a
fix panic on single-character volumes
Before this change, this would cause a panic:

    docker run -it --rm -v 1:/1 alpine
    panic: runtime error: index out of range

    goroutine 1 [running]:
    github.com/docker/cli/cli/compose/loader.isFilePath(0xc42027e058, 0x1, 0x557dcb978c20)
    ...

After this change, a correct error is returned:

    docker run -it --rm -v 1:/1 alpine
    docker: Error response from daemon: create 1: volume name is too short, names should be at least two alphanumeric characters.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2020-02-21 01:38:52 +01:00
..
command Improve service tasks grouping on printing 2020-02-17 14:47:12 +01:00
compose fix panic on single-character volumes 2020-02-21 01:38:52 +01:00
config cli/config: fix formatting of comments 2020-01-16 12:47:49 +01:00
connhelper Revert "connhelper: add ssh multiplexing" 2020-01-30 16:21:04 +01:00
context Add support for Kubernetes username/password auth 2020-02-04 11:31:28 +01:00
debug updated vendoring 2017-09-01 19:41:06 -04:00
flags Introduce docker context store 2019-01-04 17:06:51 +01:00
manifest cli/manifest: Using the variable on range scope `testcase` in function literal (scopelint) 2019-10-31 19:22:40 +01:00
registry/client cli: remove unnecessary newlines (whitespace) 2019-10-31 19:22:36 +01:00
streams Extract streams helpers from command package to their own package to remove a cyclic dependency from command to internal/containerizedengine 2019-01-28 14:36:00 +01:00
trust Update tests to use gotest.tools 👼 2018-06-08 18:24:26 +02:00
version Move versioning variables to a separate package. 2019-01-29 11:26:40 +00:00
winresources Add windows resources to binary. 2017-05-15 18:03:03 -04:00
cobra.go cli-plugins: Reinstate deprecated `-h` short form of `--help`. 2019-03-28 17:18:20 +00:00
cobra_test.go Refactor plugins' vendor location on --help 2019-02-21 17:54:11 +01:00
error.go Import docker/docker/cli 2017-04-17 17:40:59 -04:00
required.go Disable unparam linter: cli/required.go:102:16: `pluralize` - `word` always receives `"argument"` (unparam) 2019-10-31 19:22:22 +01:00
required_test.go Update tests to use gotest.tools 👼 2018-06-08 18:24:26 +02:00