Containers
Container run spec
A container's current configuration, rebuilt into the shape `POST /api/containers` accepts, so a container can be recreated or edited from what it runs today. The daemon parses each engine's own inspect output, so this response is the same shape for every container engine. Requires the **viewer** role.
udon_session<token>
In: cookie
Path Parameters
id*string
The container's id or name.
Response Body
application/json
application/json
curl -X GET "https://example.com/api/containers/string/spec"{ "image": "string", "name": "string", "command": [ "string" ], "env": [ { "key": "string", "value": "string" } ], "ports": [ { "hostAddress": "string", "hostPort": 0, "containerPort": 0, "proto": "string" } ], "volumes": [ "string" ], "hostMounts": [ { "source": "string", "target": "string" } ], "cpus": 0, "memory": "string", "workdir": "string", "entrypoint": "string", "labels": { "property1": "string", "property2": "string" }, "network": "string", "readOnly": true, "remove": true, "restartPolicy": "string", "user": "string", "uid": 0, "gid": 0, "envFiles": [ "string" ], "hostname": "string", "capAdd": [ "string" ], "capDrop": [ "string" ], "dns": [ "string" ], "dnsSearch": [ "string" ], "dnsOptions": [ "string" ], "noDNS": true, "mounts": [ "string" ], "tmpfs": [ "string" ], "devices": [ "string" ], "extraArgs": [ "string" ]}