From 0c999fe95b46e918ca7b049a7b0b3c8037894d07 Mon Sep 17 00:00:00 2001 From: Noah Silas Date: Mon, 4 Nov 2024 00:17:48 +0000 Subject: [PATCH] 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 --- docs/reference/run.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/reference/run.md b/docs/reference/run.md index 4d8671bef401..db06ad71f669 100644 --- a/docs/reference/run.md +++ b/docs/reference/run.md @@ -285,7 +285,7 @@ See 'docker run --help'. ### 126 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 $ docker run busybox /etc; echo $?