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

> ## Agent Instructions
> These are the docs for Sevalla, a platform for deploying applications, databases, static sites, object storage and load balancers. The dashboard is at https://app.sevalla.com.
> Bold text in steps is an exact dashboard label.
> To act on a Sevalla account, prefer the Sevalla MCP server (https://mcp.sevalla.com/mcp, see https://docs.sevalla.com/ai-agents/overview.md), then the Sevalla CLI (https://docs.sevalla.com/developer-tools/cli.md), then the REST API (https://api-docs.sevalla.com, OpenAPI spec at https://api.sevalla.com/v3/openapi.json).
> Every page index is at https://docs.sevalla.com/llms.txt.

# Deploy a Docker image

> Run a prebuilt Docker image as an application: public and private images, registry credentials for Docker Hub, GitHub and GitLab, image requirements, and deploying new tags or digests.

An application can run a prebuilt Docker image instead of building from Git: Sevalla pulls the image from its registry on every deployment and runs it as the application's processes, with no build. Public images need nothing else; private images need a registry credential, which you add once under **Tools** > **Registry credentials** and reuse across applications.

## Before you begin

* The image is built for `linux/amd64`.
* The image listens on the port in the `PORT` environment variable (`8080` by default) and starts its server with its `ENTRYPOINT` or `CMD`. See [Make the image run on Sevalla](https://docs.sevalla.com/applications/builds/dockerfile.md#make-the-image-run-on-sevalla).
* For a private image on Docker Hub, GitHub Container Registry or GitLab Container Registry, [add a registry credential](#add-a-registry-credential) first.
* The company has a valid payment method.

## Create an application from an image

**1. Open the create form**

In the sidebar, click **Applications**, then click **Create** > **Application**.

**2. Choose the image**

Under **Source**, click **Docker image**. In **Docker image**, enter the image reference, for example `ghcr.io/acme/storefront:3.12.0`.

**3. Choose the credential**

For a private image, choose its **Registry credential**. For a public image, leave **None (public image)**.

**4. Fill in the rest**

Enter the **Name**, choose the **Project** if there is one, the **Data center** and the **Size**, as for any [new application](https://docs.sevalla.com/applications/create.md#form-fields).

**5. Create it**

Click **Create application**.

The application opens with the status **Not deployed yet**. Click **Deploy now**, then **Deploy**: the deployment skips the build and goes straight to the rollout. When its status is **Deployed**, the application is **Running**.

![The Create an application form with the Docker image source, an image reference, the Registry credential set to None (public image), and the Summary](https://assets.sevalla.com/screenshots/light/app-create-docker.png)

**Docker image** takes any image reference: a name (`nginx`), a name and tag (`nginx:1.27`), or a digest (`nginx@sha256:...`). Without a registry host, the image comes from Docker Hub. Without a tag or digest, Sevalla pulls `latest`. Use a tag or a digest, not both in one reference. The **Summary** shows no build cost: images aren't built.

## Differences from a Git source

| Area | With a Docker image |
| - | - |
| Build | None. The **Build** step of every deployment is **Skipped**, and the **Settings** tab has no **Build** group. |
| Automatic deployments | Not available: Sevalla isn't notified when you push an image. Call the application's [deploy hook](https://docs.sevalla.com/applications/deployments.md#deploy-with-a-deploy-hook) from your CI after the push. |
| Environment variables | Runtime only. There's no build to pass them to. |
| Every deployment | Pulls the image again, so redeploying a moving tag such as `latest` runs the newest image pushed to it. |
| Start command | The image's `ENTRYPOINT` and `CMD`, unless you set a start command on the web process. |

## Deploy a new image version

**1. Open the deploy sheet**

On the application's **Deployments** tab, click **Deploy now**.

**2. Set the version**

Enter the **Tag** (for example `3.13.0`). To pin an exact image instead, clear **Tag** and enter the **Digest**. **Resolved image** shows the image the deployment pulls.

**3. Deploy**

Click **Deploy**.

The deployment shows the image it pulled under **Image** in its **Details** card.

| Field | What it is |
| - | - |
| **Base image** | The image without its tag, from the application's source. Read-only. |
| **Tag** | The tag to pull. Starts with the source's tag. |
| **Digest** | Optional. The `sha256:` digest to pull. A pasted `sha256:` prefix is removed. To pin a digest, clear **Tag** first, so the reference holds the digest only. |
| **Resolved image** | The full reference the deployment pulls |

The tag or digest you deploy applies to that deployment only. The application's source keeps its image, and the deploy hook keeps deploying it. To change the image for good, [update the source](#change-the-image-or-the-credential).

## Change the image or the credential

On the application's **Settings** tab, in the **Source** section, click **Update source**. Enter the new **Docker image** or choose another **Registry credential**, then click **Update source**, and deploy. The same sheet switches the application to a Git repository, or a Git application to an image. Switching to an image turns off automatic deployments.

## Add a registry credential

A registry credential is a username and token that Sevalla uses to pull private images. It belongs to the company, so every application in it can use it, as a Docker image source or to pull private base images in a [Dockerfile build](https://docs.sevalla.com/applications/builds/dockerfile.md).

**1. Open registry credentials**

In the sidebar, under **Tools**, click **Registry credentials**, then click **Create registry credential**.

**2. Name it**

Enter a **Name** you'll recognize when you pick it, for example `GitHub packages`.

**3. Choose the registry**

Choose the **Registry**: **Docker Hub**, **GitHub Container Registry** or **GitLab Container Registry**.

**4. Enter the account**

Enter the **Username** of the registry account and, in **Secret**, a personal access token (or password) that can read the images.

**5. Save**

Click **Create registry credential**.

The credential appears in the list with its **Registry** and **Created** date, and in the **Registry credential** list of the create form and the **Update source** sheet.

![The Create registry credential sheet with the Name, Registry, Username and Secret fields](https://assets.sevalla.com/screenshots/light/tools-registry-credentials-create.png)

| Registry | Images on | Secret | Create the token |
| - | - | - | - |
| **Docker Hub** | `docker.io` | A personal access token with read access | [Docker Hub access tokens](https://docs.docker.com/security/access-tokens/) |
| **GitHub Container Registry** | `ghcr.io` | A personal access token (classic) with the `read:packages` scope | [GitHub personal access tokens](https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/managing-your-personal-access-tokens) |
| **GitLab Container Registry** | `registry.gitlab.com` | A personal access token with the `read_registry` scope | [GitLab personal access tokens](https://docs.gitlab.com/user/profile/personal_access_tokens/) |

| Field | Rules |
| - | - |
| **Name** | Required |
| **Username** | 1 to 39 characters: letters, digits, `.`, `_` and `-`, starting and ending with a letter or digit |
| **Secret** | 8 to 128 characters. Stored encrypted; Sevalla uses it only to pull your images. |

You can't update a credential in the dashboard. To change a token, create a new credential, switch the applications that use the old one, then delete it. The API can update a credential in place.

## Delete a registry credential

> [!WARNING]
>
> Sevalla doesn't check whether a credential is in use. Applications that use a deleted credential can't pull private images until you choose another credential in their source or build strategy, so their next deployment fails. You can't undo this.

**1. Open the credential's menu**

Under **Tools** > **Registry credentials**, click **⋯** on the credential's row, then **Delete**.

**2. Confirm**

Type the credential's name, then click **Delete credential**.

The credential disappears from the list.

## Troubleshoot image deployments

Before the rollout, Sevalla checks that it can read the image. The build log shows:

| Message | Cause | Fix |
| - | - | - |
| `"<image>" image does not exist or incorrect authentication.` | The reference is wrong (registry, name or tag), the image is private and the application has no credential, or the credential can't read it | Check the reference with `docker pull` on your machine, and the credential's username, token and scope |
| `Authentication failed.` | The registry rejected the credential | Create a new token, add a new credential with it, and choose it in the application's source |
| The deployment is **Deployed** but instances crash | The image doesn't run on `linux/amd64`, exits right away, or doesn't listen on `PORT` | Check the [runtime logs](https://docs.sevalla.com/applications/logs.md); see [Troubleshoot runtime errors](https://docs.sevalla.com/applications/troubleshooting/runtime-errors.md) |

## API and CLI

| Task | API | CLI |
| - | - | - |
| Create an application from an image | [Create application](https://api-docs.sevalla.com/v3/applications/create-application) (`source: dockerImage`, `docker_image`, `docker_registry_credential_id`) | `sevalla apps create --name <name> --cluster <cluster-id> --source dockerImage --docker-image <image>` |
| Deploy an image version | [Trigger deployment](https://api-docs.sevalla.com/v3/applications/trigger-deployment) (`docker_image`) | Not available |
| Change the image | [Update application](https://api-docs.sevalla.com/v3/applications/update-application) (`source: dockerImage` and `docker_image` together; `docker_image` alone is ignored) | `sevalla apps update <app-id> --docker-image <image>` |
| List registry credentials | [List Docker registry credentials](https://api-docs.sevalla.com/v3/docker-registries/list-docker-registry-credentials) | `sevalla docker-registries list` |
| Create a registry credential | [Create Docker registry credential](https://api-docs.sevalla.com/v3/docker-registries/create-docker-registry-credential) | `sevalla docker-registries create --name <name> --registry github --username <username> --secret <token>` |
| Update a registry credential | [Update Docker registry credential](https://api-docs.sevalla.com/v3/docker-registries/update-docker-registry-credential) | `sevalla docker-registries update <id> --secret <token>` |
| Delete a registry credential | [Delete Docker registry credential](https://api-docs.sevalla.com/v3/docker-registries/delete-docker-registry-credential) | `sevalla docker-registries delete <id> --confirm` |

In the API and CLI, `registry` is `dockerHub`, `github` or `gitlab`.


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