> ## 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.

# Specifying a command

*Last Updated: November 13, 2026*

> 🚧 Caution
>
> Specifying a command overrides the CMD and ENTRYPOINT from your dockerfile. This should only be used if you want to
> override what is already in your dockerfile.
>
> This is not synonymous with `docker run`.

Providing the “command” field when creating or updating a container group overrides the ENTRYPOINT and CMD of a
container image, similar to the CLI `docker run --entrypoint` flag.

The first item in command is executed as the entrypoint, and subsequent items are provided as arguments.

Note that if a command is specified, any ENTRYPOINT and CMD set in the dockerfile are overridden. If needed, `command`
can be used to add additional arguments to a container, by including the existing CMD or ENTRYPOINT of the image.

As an example, running `docker run --entrypoint /bin/test my-container:latest arg1 arg2 arg3` would correspond to the
SaladCloud command of

```json theme={null}
["/bin/test", "arg1", "arg2", "arg3"]
```

**Note:** in the portal, you should not include include quotes around arguments. To reproduce the docker command line
`docker run --entrypoint /bin/bash my-docker/my-container:latest -c "python server.py"`, you would enter `/bin/bash` as
the command, `-c` as a first argument, and `python server.py` as a second argument, without quotes.

## Commands Security Filters Can Reject

> [!WARNING]
>
> Security filters can reject a command or argument where `curl`, `wget`, or `perl` comes right after `;`, `|`, or `||`,
> such as `apt-get update; curl -O https://example.com/model.bin`. If you change a container group's command to one like
> this, the group can get stuck on its previous version: the Portal shows the new command, but instances keep running
> the old one. Until you change the command to one of the forms below, changes to the group may not take effect.

To avoid the filters, use one of these instead:

* `&&` in place of `;`, as in `apt-get update && curl -O https://example.com/model.bin`.
* A new line before `curl`, `wget`, or `perl`.
* The full path to the program, as in `apt-get update; /usr/bin/curl -O https://example.com/model.bin`. Run `which curl`
  in your image to find the path.

After `|` or `||`, use the full path. Replacing those operators with `&&` or a new line changes what the command does.


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