mirror of https://github.com/docker/cli.git
Merge pull request #4001 from corhere/run-eisdir
cli/command/container: exit 126 on EISDIR error
This commit is contained in:
commit
7abb189120
|
@ -308,7 +308,8 @@ func runStartContainerErr(err error) error {
|
||||||
strings.Contains(trimmedErr, "no such file or directory") ||
|
strings.Contains(trimmedErr, "no such file or directory") ||
|
||||||
strings.Contains(trimmedErr, "system cannot find the file specified") {
|
strings.Contains(trimmedErr, "system cannot find the file specified") {
|
||||||
statusError = cli.StatusError{StatusCode: 127}
|
statusError = cli.StatusError{StatusCode: 127}
|
||||||
} else if strings.Contains(trimmedErr, syscall.EACCES.Error()) {
|
} else if strings.Contains(trimmedErr, syscall.EACCES.Error()) ||
|
||||||
|
strings.Contains(trimmedErr, syscall.EISDIR.Error()) {
|
||||||
statusError = cli.StatusError{StatusCode: 126}
|
statusError = cli.StatusError{StatusCode: 126}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue