Skip to main content

Containers

The containers API allows you to run and manage custom containers on the platform.

First steps

Configuring your container registry

To run images from a private container registry, you need to configure the registry in the platform. You can do this by creating a new container registry resource in the platform and providing the necessary credentials.

You can use the following API operations to manage container registries:

After a container registry is configured for a project, you can simply use it within that project by prefixing the image name, just as you would with a docker run command.

Starting and updating container stacks

Containers are run as part of a container stack. A container stack is a collection of containers and volumes that are run together. You can use the following API operations to manage container stacks:

Connecting domains to containers

To connect a domain to a running container, you can specify the container as target of an ingress resource. Use the following API operation to create an ingress connected to a container:

Operational tasks

To manage a container stack's lifecycle, you can use the following API operations:

not deprecated
post
Validate a Registries' URI.
/v2/actions/validate-container-registry-uri
get
Get a ContainerImageConfig.
/v2/container-image-config
get
List Registries belonging to a Project.
/v2/projects/{projectId}/registries
post
Create a Registry.
/v2/projects/{projectId}/registries
get
List Services belonging to a Project.
/v2/projects/{projectId}/services
get
List Stacks belonging to a Project.
/v2/projects/{projectId}/stacks
get
List Volumes belonging to a Project.
/v2/projects/{projectId}/volumes
get
Get a Registry.
/v2/registries/{registryId}
patch
Update a Registry.
/v2/registries/{registryId}
delete
Delete a Registry.
/v2/registries/{registryId}
post
Validate a Registries' credentials.
/v2/registries/{registryId}/actions/validate-credentials
get
Get a Stack.
/v2/stacks/{stackId}
put
Declaratively create, update or delete Services or Volumes belonging to a Stack.
/v2/stacks/{stackId}
patch
Create, update or delete Services or Volumes belonging to a Stack.
/v2/stacks/{stackId}
get
Get a Service belonging to a Stack.
/v2/stacks/{stackId}/services/{serviceId}
post
Pulls the latest version of the Service's image and recreates the Service.
/v2/stacks/{stackId}/services/{serviceId}/actions/pull
post
Recreate a Service.
/v2/stacks/{stackId}/services/{serviceId}/actions/recreate
post
Restart a started Service.
/v2/stacks/{stackId}/services/{serviceId}/actions/restart
post
Start a stopped Service.
/v2/stacks/{stackId}/services/{serviceId}/actions/start
post
Stop a started Service.
/v2/stacks/{stackId}/services/{serviceId}/actions/stop
get
Get logs belonging to a Service.
/v2/stacks/{stackId}/services/{serviceId}/logs
get
Get a Volume belonging to a Stack.
/v2/stacks/{stackId}/volumes/{volumeId}
delete
Delete a Volume belonging to a Stack.
/v2/stacks/{stackId}/volumes/{volumeId}