mirror of https://github.com/docker/cli.git
4ad65fc358
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>
(cherry picked from commit
|
||
---|---|---|
.. | ||
example1.env | ||
example2.env | ||
full-example.yml | ||
full-struct_test.go | ||
interpolate.go | ||
loader.go | ||
loader_test.go | ||
merge.go | ||
merge_test.go | ||
types_test.go | ||
volume.go | ||
volume_test.go | ||
windows_path.go | ||
windows_path_test.go |