Skip to content

Stream a Gateway container archive

GET
/api/docker/nodes/{nodeId}/containers/{containerId}/archive
curl --request GET \
--url 'https://gateway.example.com/api/docker/nodes/550e8400-e29b-41d4-a716-446655440000/containers/550e8400-e29b-41d4-a716-446655440000/archive?imageMode=portable&includeWritableLayer=false&includeEnvironment=true&includeSecrets=false' \
--header 'Authorization: Bearer <token>'
nodeId
required
string
>= 1 characters
Example
550e8400-e29b-41d4-a716-446655440000
containerId
required
string
>= 1 characters
Example
550e8400-e29b-41d4-a716-446655440000
imageMode
string
default: portable
Allowed values: portable registry
includeWritableLayer
boolean
includeEnvironment
boolean
default: true
includeSecrets
boolean

GWCA v1 stream. Volume contents are never included.

Media typeapplication/vnd.wiolett.gwca
string format: binary

Bad request

Media typeapplication/json
object
code
required

Error code

string
message
required

Human-readable error message

string
details

Additional error details

Example
{
"code": "VALIDATION_ERROR",
"message": "Request validation failed",
"details": [
{
"path": [
"name"
],
"message": "Required"
}
]
}

Authentication required

Media typeapplication/json
object
code
required

Error code

string
message
required

Human-readable error message

string
details

Additional error details

Example
{
"code": "UNAUTHORIZED",
"message": "Authentication required"
}

Forbidden

Media typeapplication/json
object
code
required

Error code

string
message
required

Human-readable error message

string
details

Additional error details

Example
{
"code": "FORBIDDEN",
"message": "Insufficient permissions"
}

Not found

Media typeapplication/json
object
code
required

Error code

string
message
required

Human-readable error message

string
details

Additional error details

Example
{
"code": "NOT_FOUND",
"message": "Resource not found"
}

The container cannot be exported as a standalone archive. DOCKER_ARCHIVE_COMPOSE_CONTAINER: it belongs to a Compose project and is managed through that project. GPU_ARCHIVE_UNSUPPORTED: it has GPU mappings.

Media typeapplication/json
object
code
required

Error code

string
message
required

Human-readable error message

string
details

Additional error details

Example
{
"code": "DOCKER_ARCHIVE_COMPOSE_CONTAINER",
"message": "This container belongs to Compose project shop and cannot be exported as a container archive; manage it through the Compose project instead",
"details": {
"nodeId": "550e8400-e29b-41d4-a716-446655440000",
"containerId": "shop-web-1",
"projectName": "shop",
"projectId": null
}
}

Unprocessable entity

Media typeapplication/json
object
code
required

Error code

string
message
required

Human-readable error message

string
details

Additional error details

Example
{
"code": "UNPROCESSABLE_ENTITY",
"message": "Request could not be processed"
}

Internal server error

Media typeapplication/json
object
code
required

Error code

string
message
required

Human-readable error message

string
details

Additional error details

Example
{
"code": "INTERNAL_ERROR",
"message": "Internal server error"
}