mirror of
https://github.com/containers/podman.git
synced 2025-06-20 17:13:43 +08:00
Merge pull request #19618 from PeterWhittaker/main
[CI:DOCS] Update podman.1.md: Fix formatting of exit code 127, clarify wording …
This commit is contained in:
@ -295,18 +295,19 @@ the exit codes follow the `chroot` standard, see below:
|
|||||||
Error: unknown flag: --foo
|
Error: unknown flag: --foo
|
||||||
125
|
125
|
||||||
|
|
||||||
**126** Executing a _contained command_ and the _command_ cannot be invoked
|
**126** Executing a _container command_ and the _command_ cannot be invoked
|
||||||
|
|
||||||
$ podman run busybox /etc; echo $?
|
$ podman run busybox /etc; echo $?
|
||||||
Error: container_linux.go:346: starting container process caused "exec: \"/etc\": permission denied": OCI runtime error
|
Error: container_linux.go:346: starting container process caused "exec: \"/etc\": permission denied": OCI runtime error
|
||||||
126
|
126
|
||||||
|
|
||||||
**127** Executing a _contained command_ and the _command_ cannot be found
|
**127** Executing a _container command_ and the _command_ cannot be found
|
||||||
|
|
||||||
$ podman run busybox foo; echo $?
|
$ podman run busybox foo; echo $?
|
||||||
Error: container_linux.go:346: starting container process caused "exec: \"foo\": executable file not found in $PATH": OCI runtime error
|
Error: container_linux.go:346: starting container process caused "exec: \"foo\": executable file not found in $PATH": OCI runtime error
|
||||||
127
|
127
|
||||||
|
|
||||||
**Exit code** _contained command_ exit code
|
**Exit code** otherwise, `podman` returns the exit code of the _container command_
|
||||||
|
|
||||||
$ podman run busybox /bin/sh -c 'exit 3'; echo $?
|
$ podman run busybox /bin/sh -c 'exit 3'; echo $?
|
||||||
3
|
3
|
||||||
|
Reference in New Issue
Block a user