mirror of https://github.com/docker/cli.git
docs: Correct `run` exit code 126 description
The command to run inside the container is `/etc`. The semicolon is a
statement terminator, which ends the command `docker run busybox /etc`,
while `echo $?` prints the exit code of that full docker command.
Having this mistake could confuse someone who thinks that `/etc; echo
$?` is all run inside the container, which wouldn't help the reader
understand the exit code of the `docker run` command itself.
Signed-off-by: Noah Silas <noah@hustle.com>
(cherry picked from commit 0c999fe95b
)
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
parent
0dd07f0bfd
commit
9d5a2a6b66
|
@ -285,7 +285,7 @@ See 'docker run --help'.
|
||||||
### 126
|
### 126
|
||||||
|
|
||||||
Exit code `126` indicates that the specified contained command can't be invoked.
|
Exit code `126` indicates that the specified contained command can't be invoked.
|
||||||
The container command in the following example is: `/etc; echo $?`.
|
The container command in the following example is: `/etc`.
|
||||||
|
|
||||||
```console
|
```console
|
||||||
$ docker run busybox /etc; echo $?
|
$ docker run busybox /etc; echo $?
|
||||||
|
|
Loading…
Reference in New Issue