diff --git a/docs/reference/api/docker_remote_api_v1.18.md b/docs/reference/api/docker_remote_api_v1.18.md index 7eb188c61971cdc23937706a3f4b03b5394383f9..aa884d03eb831b442380343f925c24506878488c 100644 --- a/docs/reference/api/docker_remote_api_v1.18.md +++ b/docs/reference/api/docker_remote_api_v1.18.md @@ -1887,15 +1887,13 @@ Sets up an exec instance in a running container `id` POST /containers/e90e34656806/exec HTTP/1.1 Content-Type: application/json - { - "AttachStdin": false, - "AttachStdout": true, - "AttachStderr": true, - "Tty": false, - "Cmd": [ - "date" - ] - } + { + "AttachStdin": true, + "AttachStdout": true, + "AttachStderr": true, + "Cmd": ["sh"], + "Tty": true + } **Example response**: diff --git a/docs/reference/api/docker_remote_api_v1.19.md b/docs/reference/api/docker_remote_api_v1.19.md index adaaf09aefd2749519ff205df2f7b32d58ea6a39..192c2aa8b773f22462c9ec1a57424c1baac10c0e 100644 --- a/docs/reference/api/docker_remote_api_v1.19.md +++ b/docs/reference/api/docker_remote_api_v1.19.md @@ -1965,15 +1965,14 @@ Sets up an exec instance in a running container `id` POST /containers/e90e34656806/exec HTTP/1.1 Content-Type: application/json - { - "AttachStdin": false, - "AttachStdout": true, - "AttachStderr": true, - "Tty": false, - "Cmd": [ - "date" - ] - } + { + "AttachStdin": true, + "AttachStdout": true, + "AttachStderr": true, + "Cmd": ["sh"], + "Tty": true, + "User": "123:456" + } **Example response**: @@ -1992,7 +1991,9 @@ Sets up an exec instance in a running container `id` - **AttachStderr** - Boolean value, attaches to `stderr` of the `exec` command. - **Tty** - Boolean value to allocate a pseudo-TTY. - **Cmd** - Command to run specified as a string or an array of strings. - +- **User** - A string value specifying the user, and optionally, group to run + the exec process inside the container. Format is one of: `"user"`, + `"user:group"`, `"uid"`, or `"uid:gid"`. **Status codes**: diff --git a/docs/reference/api/docker_remote_api_v1.20.md b/docs/reference/api/docker_remote_api_v1.20.md index d87aeadeb81a7a306e4cc2c9a7ff47d5bb09b566..f88eedc3b0cb96f8748f43f53cf18a40235ae064 100644 --- a/docs/reference/api/docker_remote_api_v1.20.md +++ b/docs/reference/api/docker_remote_api_v1.20.md @@ -2118,15 +2118,14 @@ Sets up an exec instance in a running container `id` POST /containers/e90e34656806/exec HTTP/1.1 Content-Type: application/json - { - "AttachStdin": false, - "AttachStdout": true, - "AttachStderr": true, - "Tty": false, - "Cmd": [ - "date" - ] - } + { + "AttachStdin": true, + "AttachStdout": true, + "AttachStderr": true, + "Cmd": ["sh"], + "Tty": true, + "User": "123:456" + } **Example response**: @@ -2145,7 +2144,9 @@ Sets up an exec instance in a running container `id` - **AttachStderr** - Boolean value, attaches to `stderr` of the `exec` command. - **Tty** - Boolean value to allocate a pseudo-TTY. - **Cmd** - Command to run specified as a string or an array of strings. - +- **User** - A string value specifying the user, and optionally, group to run + the exec process inside the container. Format is one of: `"user"`, + `"user:group"`, `"uid"`, or `"uid:gid"`. **Status codes**: diff --git a/docs/reference/api/docker_remote_api_v1.21.md b/docs/reference/api/docker_remote_api_v1.21.md index f7cafed5b15081549c438240c65ff53713d76247..4c6fc73f999236dfbd7907af2680c9273d577b46 100644 --- a/docs/reference/api/docker_remote_api_v1.21.md +++ b/docs/reference/api/docker_remote_api_v1.21.md @@ -2272,15 +2272,15 @@ Sets up an exec instance in a running container `id` POST /containers/e90e34656806/exec HTTP/1.1 Content-Type: application/json - { - "AttachStdin": false, - "AttachStdout": true, - "AttachStderr": true, - "Tty": false, - "Cmd": [ - "date" - ] - } + { + "AttachStdin": true, + "AttachStdout": true, + "AttachStderr": true, + "Cmd": ["sh"], + "Privileged": true, + "Tty": true, + "User": "123:456" + } **Example response**: @@ -2299,7 +2299,10 @@ Sets up an exec instance in a running container `id` - **AttachStderr** - Boolean value, attaches to `stderr` of the `exec` command. - **Tty** - Boolean value to allocate a pseudo-TTY. - **Cmd** - Command to run specified as a string or an array of strings. - +- **Privileged** - Boolean value, runs the exec process with extended privileges. +- **User** - A string value specifying the user, and optionally, group to run + the exec process inside the container. Format is one of: `"user"`, + `"user:group"`, `"uid"`, or `"uid:gid"`. **Status codes**: diff --git a/docs/reference/api/docker_remote_api_v1.22.md b/docs/reference/api/docker_remote_api_v1.22.md index 60f325b1b6bd6fa698dc715d8d6446193b380596..ad7baddeb93671dd75e7cc98aee9b30cffcf9417 100644 --- a/docs/reference/api/docker_remote_api_v1.22.md +++ b/docs/reference/api/docker_remote_api_v1.22.md @@ -2662,16 +2662,16 @@ Sets up an exec instance in a running container `id` POST /containers/e90e34656806/exec HTTP/1.1 Content-Type: application/json - { - "AttachStdin": false, - "AttachStdout": true, - "AttachStderr": true, - "DetachKeys": "ctrl-p,ctrl-q", - "Tty": false, - "Cmd": [ - "date" - ] - } + { + "AttachStdin": true, + "AttachStdout": true, + "AttachStderr": true, + "Cmd": ["sh"], + "DetachKeys": "ctrl-p,ctrl-q", + "Privileged": true, + "Tty": true, + "User": "123:456" + } **Example response**: @@ -2693,7 +2693,10 @@ Sets up an exec instance in a running container `id` where `` is one of: `a-z`, `@`, `^`, `[`, `,` or `_`. - **Tty** - Boolean value to allocate a pseudo-TTY. - **Cmd** - Command to run specified as a string or an array of strings. - +- **Privileged** - Boolean value, runs the exec process with extended privileges. +- **User** - A string value specifying the user, and optionally, group to run + the exec process inside the container. Format is one of: `"user"`, + `"user:group"`, `"uid"`, or `"uid:gid"`. **Status codes**: diff --git a/docs/reference/api/docker_remote_api_v1.23.md b/docs/reference/api/docker_remote_api_v1.23.md index 364ab25e4bf90af011d803c27cfc16308627631c..fecbf50109d566f4d4ae2b945781f7173c64d6d9 100644 --- a/docs/reference/api/docker_remote_api_v1.23.md +++ b/docs/reference/api/docker_remote_api_v1.23.md @@ -2736,16 +2736,16 @@ Sets up an exec instance in a running container `id` POST /containers/e90e34656806/exec HTTP/1.1 Content-Type: application/json - { - "AttachStdin": false, - "AttachStdout": true, - "AttachStderr": true, - "DetachKeys": "ctrl-p,ctrl-q", - "Tty": false, - "Cmd": [ - "date" - ] - } + { + "AttachStdin": true, + "AttachStdout": true, + "AttachStderr": true, + "Cmd": ["sh"], + "DetachKeys": "ctrl-p,ctrl-q", + "Privileged": true, + "Tty": true, + "User": "123:456" + } **Example response**: @@ -2767,7 +2767,10 @@ Sets up an exec instance in a running container `id` where `` is one of: `a-z`, `@`, `^`, `[`, `,` or `_`. - **Tty** - Boolean value to allocate a pseudo-TTY. - **Cmd** - Command to run specified as a string or an array of strings. - +- **Privileged** - Boolean value, runs the exec process with extended privileges. +- **User** - A string value specifying the user, and optionally, group to run + the exec process inside the container. Format is one of: `"user"`, + `"user:group"`, `"uid"`, or `"uid:gid"`. **Status codes**: diff --git a/docs/reference/api/docker_remote_api_v1.24.md b/docs/reference/api/docker_remote_api_v1.24.md index 393c0f9de4e337f85a716c2e563e45113568a399..c8f651c961dbb50ae1855954e76915e600ccff73 100644 --- a/docs/reference/api/docker_remote_api_v1.24.md +++ b/docs/reference/api/docker_remote_api_v1.24.md @@ -2750,16 +2750,16 @@ Sets up an exec instance in a running container `id` POST /containers/e90e34656806/exec HTTP/1.1 Content-Type: application/json - { - "AttachStdin": false, - "AttachStdout": true, - "AttachStderr": true, - "DetachKeys": "ctrl-p,ctrl-q", - "Tty": false, - "Cmd": [ - "date" - ] - } + { + "AttachStdin": true, + "AttachStdout": true, + "AttachStderr": true, + "Cmd": ["sh"], + "DetachKeys": "ctrl-p,ctrl-q", + "Privileged": true, + "Tty": true, + "User": "123:456" + } **Example response**: @@ -2781,7 +2781,10 @@ Sets up an exec instance in a running container `id` where `` is one of: `a-z`, `@`, `^`, `[`, `,` or `_`. - **Tty** - Boolean value to allocate a pseudo-TTY. - **Cmd** - Command to run specified as a string or an array of strings. - +- **Privileged** - Boolean value, runs the exec process with extended privileges. +- **User** - A string value specifying the user, and optionally, group to run + the exec process inside the container. Format is one of: `"user"`, + `"user:group"`, `"uid"`, or `"uid:gid"`. **Status codes**: diff --git a/docs/reference/api/docker_remote_api_v1.25.md b/docs/reference/api/docker_remote_api_v1.25.md index 5ccde1e33e4321a91fe22f2a6140bb174183f6b5..ed9bcbfca21ae058d14b3eedfa2317fa0a826b14 100644 --- a/docs/reference/api/docker_remote_api_v1.25.md +++ b/docs/reference/api/docker_remote_api_v1.25.md @@ -2766,16 +2766,16 @@ Sets up an exec instance in a running container `id` POST /containers/e90e34656806/exec HTTP/1.1 Content-Type: application/json - { - "AttachStdin": false, - "AttachStdout": true, - "AttachStderr": true, - "DetachKeys": "ctrl-p,ctrl-q", - "Tty": false, - "Cmd": [ - "date" - ] - } + { + "AttachStdin": true, + "AttachStdout": true, + "AttachStderr": true, + "Cmd": ["sh"], + "DetachKeys": "ctrl-p,ctrl-q", + "Privileged": true, + "Tty": true, + "User": "123:456" + } **Example response**: @@ -2797,7 +2797,10 @@ Sets up an exec instance in a running container `id` where `` is one of: `a-z`, `@`, `^`, `[`, `,` or `_`. - **Tty** - Boolean value to allocate a pseudo-TTY. - **Cmd** - Command to run specified as a string or an array of strings. - +- **Privileged** - Boolean value, runs the exec process with extended privileges. +- **User** - A string value specifying the user, and optionally, group to run + the exec process inside the container. Format is one of: `"user"`, + `"user:group"`, `"uid"`, or `"uid:gid"`. **Status codes**: