Exec Create
POST /containers/(id)/exec
Sets up an exec instance in a running container id
Example request:
Example response:
Json Parameters:
AttachStdin - Boolean value, attaches to
stdin
of theexec
command.AttachStdout - Boolean value, attaches to
stdout
of theexec
command.AttachStderr - Boolean value, attaches to
stderr
of theexec
command.DetachKeys – Override the key sequence for detaching a container.
Tty - Boolean value to allocate a pseudo-TTY.
Cmd - Command to run specified as a string or an array of strings.
Status Codes:
201 – no error
404 – no such container
409 - container is paused
500 - server error
Last updated