v1

latestSwagger 2.02026-07-175684145.0 KB
Exec

Create an exec instance

Run a command inside a running container.

post/containers/{id}/exec

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