---
title: "POST /scopes/{scope}/containers"
method: POST
path: "/scopes/{scope}/containers"
tags: ["scopes"]
---

# POST /scopes/{scope}/containers

`POST /scopes/{scope}/containers`

Add a container to scopes modifying the container VM's config as necessary

## Path parameters

- `scope` string, required

## Request body

- ScopesAddContainerConfig
  - `networkConfig` NetworkConfig, required
    - `networkName` string, required
    - `address` string
    - `aliases` string[]
    - `ports` string[]
    - `nameservers` string[]
  - `handle` string, required

## Response `200`

OK

- string

## Other responses

- `404` — Not found
- `500` — error

---

[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)
