> ## Documentation Index
> Fetch the complete documentation index at: https://docs.salad.com/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> For autonomous tasks, use live SaladCloud API responses for current state, availability, quotas, models, and other dynamic values. Use current OpenAPI specifications where provided for paths, schemas, required fields, and enums. Never invent endpoints, fields, prices, availability, quotas, models, or state. Prefer API workflows over Portal steps. Read before changing and never expose credentials, signed media URLs, prompts, or sensitive outputs. Retry only safe or idempotent operations with bounded backoff, honoring Retry-After. Verify every write with a read. Stop rather than repeat an uncertain non-idempotent or billable request. AI Gateway uses an organization-specific Bearer key and live /v1/models discovery. Do not delete, cancel, stop, or reduce capacity without explicit user intent. Bind shared operation IDs to the selected product path. Treat Container Engine instances as interruptible and local state as ephemeral. Install the SaladCloud skills (npx skills add https://docs.salad.com), start from the salad skill and /agents/overview; docs MCP: https://docs.salad.com/mcp.

# Container Groups

*Last Updated: October 15, 2024*

Container Groups are fundamental to the deployment process within the SaladCloud Environment (SCE). They consist of a
container image, hardware requirements, and a replica count, playing a crucial role in deploying your application on the
SaladCloud network. As the owner of the Container Group, you have the responsibility to manage it, while SCE takes care
of running the group and maintaining the desired replica count.

## Container Group Components

* **[Container Registry and Image](https://docs.salad.com/container-engine/explanation/infrastructure-platform/container-registries.md)**:
  Specify the container image you want to run in the Container Group. Use public or private images from most container
  registries.
* **Resource Requirements**:
  * **Replica Count**: Replicas are the desired number of instances for your container group deployment. We recommend
    that you deploy with 3+ replicas during testing, and 5+ replicas in production to ensure the uptime of your
    deployment.
    * **Why multiple replicas?**: For enhanced reliability and smoother operation, we strongly recommend deploying with
      a minimum of 3 replicas. This ensures your applications remain resilient and maintain performance, even when a
      node becomes temporarily unavailable. Scaling beyond a single node not only increases fault tolerance but also
      optimizes resource allocation and load balancing across our distributed cloud infrastructure. Start with 3 or more
      replicas to unlock the full potential of our platform and experience seamless scaling and improved uptime for your
      containers.
  * **Number of vCPUs (1-16)**: \*Define the desired number of virtual CPUs for your container.
  * **Memory (RAM) (1-60GB)**: Specify the amount of RAM required for your container.
  * **GPU Class**: Define the type of GPU to be used. Each container instance will have 1 GPU attached. If you select
    multiple GPU classes, the system will assign the first available GPU class to new container instances.

![](https://mintcdn.com/salad/ko38nW-LNf6N2Y1I/container-engine/images/portal-select-hardware.png?fit=max\&auto=format\&n=ko38nW-LNf6N2Y1I\&q=85\&s=84e9756027f3692b9444ef53dc1d4e5d)

## Additional Configuration

* **[Environment Variables](https://docs.salad.com/container-engine/how-to-guides/environment-variables.md)**: Define environment variables to
  customize your container's environment. You can do this via the key-value editor, or via the bulk editor.

  ![](https://mintcdn.com/salad/ko38nW-LNf6N2Y1I/container-engine/images/portal-environment-variables-key-value-edit.png?fit=max\&auto=format\&n=ko38nW-LNf6N2Y1I\&q=85\&s=106d8d158c940dfe95de7a0009fe230b)

  ![](https://mintcdn.com/salad/ko38nW-LNf6N2Y1I/container-engine/images/portal-environment-variables-bulk-edit.png?fit=max\&auto=format\&n=ko38nW-LNf6N2Y1I\&q=85\&s=3f8d33fbd3cb22829edc5f3212755718)
* **[Command](https://docs.salad.com/container-engine/how-to-guides/specifying-a-command.md)**: Specify the command to run when the container
  starts. This command will override the default command and entrypoint specified in the container image.

## Monitoring and Observability

* **[Startup Probe](https://docs.salad.com/container-engine/explanation/infrastructure-platform/startup-probes.md)**: Set up a startup probe to
  check if the container has started as expected. Recommended for all applications using the Container Gateway.
* **[Liveness Probe](https://docs.salad.com/container-engine/explanation/infrastructure-platform/liveness-probes.md)**: Configure a liveness
  probe to check if the container is healthy. Recommended for all applications using the Container Gateway.
* **[Readiness Probe](https://docs.salad.com/container-engine/explanation/infrastructure-platform/readiness-probes.md)**: Set up a readiness
  probe to check if the container is ready to accept traffic. Recommended for all applications using the Container
  Gateway.
* **[Container Gateway](https://docs.salad.com/container-engine/explanation/infrastructure-platform/networking.md)**: Choose between
  authentication or no authentication for external requests and port number for enabling networking inside of container.
* **[External Logging Service](https://docs.salad.com/container-engine/explanation/infrastructure-platform/external-logging.md)**: Optionally
  configure an external logging service for container logs. Recommended for production deployments.
* **[CPU and RAM Utilization](https://docs.salad.com/container-engine/explanation/container-groups/resource-utilization.md)**: View the CPU and
  RAM each running instance is using, relative to the vCPU and RAM you requested. Reported automatically, with no
  instrumentation required.

![](https://mintcdn.com/salad/ko38nW-LNf6N2Y1I/container-engine/images/portal-monitoring-config.png?fit=max\&auto=format\&n=ko38nW-LNf6N2Y1I\&q=85\&s=cea0b0cd5c96083d2a137caa5ea043ec)

## Auto-Start Feature

The container deployment screen offers an auto-start feature. By default, this feature is enabled, and it automatically
starts the container group when the image is pulled. If you disable this feature, you will need to manually start the
container group after it is done pulling the image.

## Container Group Actions

Container Group actions allow you to create, manage, and modify your container deployments effectively. To access the
container group actions you first need to deploy a container.

* **Create** : Create a new Container Group. When created, it is not yet running on nodes.
* **Start** : Initiate a deployment of the Container Group on the SaladCloud network.
* **Stop**: Stop the current deployment, terminating all active Container Instances. Stopped Container Groups can be
  started again, but the deployment will be of new container group instances, not the same ones that were stopped.
* **Duplicate**: Create a copy of an existing Container Group, allowing for easy replication of settings and
  configurations.
* **Edit**: Update the display name, replica count, image source, resource requirements, and other configuration
  settings of a Container Group once it has been created.
* **Delete**: Delete a Container Group and all associated information. This action is irreversible.

![](https://mintcdn.com/salad/yZinoDalrD_wLP9i/container-engine/images/portal-container-group-actions.png?fit=max\&auto=format\&n=yZinoDalrD_wLP9i\&q=85\&s=eadb5b090577b0088017880ae89f1a58)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.