---
title: "Get container"
method: GET
path: "/api/v1/container/{container_id}"
tags: ["Containers"]
---

# Get container

`GET /api/v1/container/{container_id}`

Get container.

Auth: Required (bearer token).
Scope: Organization-scoped in authenticated context.
Side effects: Read-only operation.

## Path parameters

- `container_id` string, required

## Headers

- `Accept` string

## Response `200`

OK

- GetContainerResponse — GetContainerResponse schema
  - `data` object
    - `command` string
    - `created` string
    - `host_config` object
      - `cpu_shares` integer
      - `memory` integer
      - `memory_swap` integer
    - `id` string, uuid
    - `image` string
    - `ip_address` string
    - `labels` object
    - `mounts` object[]
      - `destination` string
      - `mode` string
      - `source` string
      - `type` string
    - `name` string
    - `networks` object[]
      - `aliases` string[]
      - `gateway` string
      - `ip_address` string
      - `mac_address` string
      - `name` string
    - `ports` object[]
      - `private_port` integer
      - `public_port` integer
      - `type` string
    - `state` string
    - `status` string
  - `message` string
  - `status` string

## Other responses

- `400` — Bad Request _(validation or deserialization error)_
- `500` — Internal Server Error _(panics)_
- `default`

---

[API](https://skmtc.net/nixopus/apis/openapi.md) · [All operations](https://skmtc.net/nixopus/apis/openapi/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/nixopus/openapi/revisions/c5bacaea7239/schema)
