---
title: "GET /containers/{id}/wait"
method: GET
path: "/containers/{id}/wait"
tags: ["containers"]
---

# GET /containers/{id}/wait

`GET /containers/{id}/wait`

Wait for the container to stop

## Path parameters

- `id` string, required

## Query parameters

- `timeout` integer, required

## Response `200`

OK

- ContainerInfo
  - `containerConfig` ContainerConfig
    - `containerId` string
    - `layerId` string
    - `imageId` string
    - `repoName` string, nullable
    - `createTime` integer
    - `names` string[]
    - `annotations` object
    - `state` string
    - `restartCount` integer
    - `hostName` string, nullable
    - `attachStdin` boolean, nullable
    - `attachStdout` boolean, nullable
    - `attachStderr` boolean, nullable
    - `tty` boolean, nullable
    - `consoleSize` object
      - `width` integer
      - `height` integer
    - `openStdin` boolean, nullable
    - `logPath` string
    - `reservation` ReservationConfig
      - `cpuCount` integer
      - `memoryLimit` integer
    - `storageSize` integer
    - `memorySizeMB` integer
    - `numCpu` integer
  - `HostConfig` HostConfig — Information about the virtual container host (VCH)
    - `architecture` string
    - `ostype` string
    - `kernelVersion` string
    - `reservation` ReservationConfig
      - `cpuCount` integer
      - `memoryLimit` integer
  - `processConfig` ProcessConfig
    - `pid` integer
    - `execPath` string
    - `execArgs` string[]
    - `workingDir` string, nullable
    - `user` string
    - `env` string[]
    - `status` string
    - `startTime` integer
    - `stopTime` integer
    - `exitCode` integer
    - `errorMsg` string
  - `volumeConfig` VolumeConfig[]
    - `name` string
    - `mountPoint` string
    - `flags` object
    - `readWrite` boolean
  - `endpoints` EndpointConfig[]
    - `id` string, required
    - `name` string, required
    - `scope` string, required
    - `address` string, required
    - `gateway` string, required
    - `container` string, required
    - `ports` string[], required
    - `aliases` string[], required
    - `nameservers` string[], required
    - `trust` string
    - `direct` boolean
    - `macaddress` string
  - `dataVersion` integer

## Other responses

- `404` — Container not found
- `500` — Failed to wait on Container

---

[API](https://skmtc.dev/vmware/apis/port-layer-api.md) · [All operations](https://skmtc.dev/vmware/apis/port-layer-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/vmware/port-layer-api/revisions/5fff0b8814c7/schema)
