Exec

Create an exec instance

Run a command inside a running container.

post/containers/{id}/exec

Request

  • Base URL
    /v1.24 (relative, and the document was published on a file host, not at the API’s origin)
  • Auth
    none declared

Path parameters

idstring required

ID or name of the container

Request body

Userstring

User that will run the command

Privilegedboolean

Is the container in privileged mode

Ttyboolean

Attach standard streams to a tty

AttachStdinboolean

Attach the standard input, makes possible user interaction

AttachStderrboolean

Attach the standard error

AttachStdoutboolean

Attach the standard output

Detachboolean

Execute in detach mode

DetachKeysstring

Escape keys for detach

Cmdstring[] required

Execution commands and args

Envstring[]

envs for exec command in container

Response

no error

Idstring

ID is the exec ID

Changes

No recorded changes to this operation across all 69 revisions of this API.