|
@@ -1561,7 +1561,6 @@ Sets up an exec instance in a running container `id`
|
|
|
"Cmd":[
|
|
|
"date"
|
|
|
],
|
|
|
- "Container":"e90e34656806",
|
|
|
}
|
|
|
|
|
|
**Example response**:
|
|
@@ -1575,7 +1574,12 @@ Sets up an exec instance in a running container `id`
|
|
|
|
|
|
Json Parameters:
|
|
|
|
|
|
-- **execConfig** ? exec configuration.
|
|
|
+- **AttachStdin** - Boolean value, attaches to stdin of the exec command.
|
|
|
+- **AttachStdout** - Boolean value, attaches to stdout of the exec command.
|
|
|
+- **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.
|
|
|
+
|
|
|
|
|
|
Status Codes:
|
|
|
|
|
@@ -1586,8 +1590,9 @@ Status Codes:
|
|
|
|
|
|
`POST /exec/(id)/start`
|
|
|
|
|
|
-Starts a previously set up exec instance `id`. If `detach` is true, this API returns after
|
|
|
-starting the `exec` command. Otherwise, this API sets up an interactive session with the `exec` command.
|
|
|
+Starts a previously set up exec instance `id`. If `detach` is true, this API
|
|
|
+returns after starting the `exec` command. Otherwise, this API sets up an
|
|
|
+interactive session with the `exec` command.
|
|
|
|
|
|
**Example request**:
|
|
|
|
|
@@ -1608,7 +1613,8 @@ starting the `exec` command. Otherwise, this API sets up an interactive session
|
|
|
|
|
|
Json Parameters:
|
|
|
|
|
|
-- **execConfig** ? exec configuration.
|
|
|
+- **Detach** - Detach from the exec command
|
|
|
+- **Tty** - Boolean value to allocate a pseudo-TTY
|
|
|
|
|
|
Status Codes:
|
|
|
|