---
title: "Start an exec instance"
method: POST
path: "/exec/{id}/start"
tags: ["Exec"]
---

# Start an exec instance

`POST /exec/{id}/start`

Starts a previously set up exec instance. If detach is true, this endpoint returns immediately after starting the command. Otherwise, it sets up an interactive session with the command.

## Path parameters

- `id` string, required

## Request body

- ExecStartConfig — ExecStartConfig is a temp struct used by execStart.
  - `Detach` boolean — ExecStart will first check if it's detached
  - `Tty` boolean — Check if there's a tty

## Response `200`

No error

## Other responses

- `404` — No such exec instance
- `409` — Container is stopped or paused

---

[API](https://skmtc.dev/aliyun/apis/pouch-engine-api.md) · [All operations](https://skmtc.dev/aliyun/apis/pouch-engine-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/aliyun/pouch-engine-api/revisions/36d75b2825fc/schema)
