# Run your own image

You can start your own container image on a GPU server. This page shows the choices that matter. The form fields are explained in [Templates](/docs/templates).

## What the image needs

- It must be pullable from a registry. Use a public image, or add a registry login for a private one.
- It needs GPU libraries inside it if your software uses the GPU, for example a CUDA base image. Check with `nvidia-smi` and your framework after the server starts.
- Check the minimum disk. The default disk size of a template is where your files go.

## Choose the launch mode

| Launch mode | What happens | You can |
|---|---|---|
| **SSH only** | The server starts with SSH access and our own setup | Connect and run anything |
| **Jupyter notebook** | A notebook server starts. You name the app port | Open it from **Connect** |
| **Container (entrypoint)** | The image's own command runs | Open the app port if you set one |

With **Container (entrypoint)** and **Container arguments** set, the server runs only the image's own command. There is no SSH access and no start script. Arguments are one line of up to 2000 characters, are not run through a shell, and values that contain a backtick, a backslash, `;`, `&`, `|` or a line break are refused.

## Steps

1. Go to **Templates > New template**.
2. Enter a name and the image. A full reference such as `ghcr.io/team/app:1.2` is split into image and tag. A `sha256:` digest also works as a tag. Pinning a tag or digest gives you the same software every time.
3. Choose the **Launch mode**.
4. Add the ports your software uses. For **Jupyter notebook** and web apps choose the **App port** from the list.
5. Add environment variables. Mark secrets so the values are stored encrypted and are never shown again.
6. Optionally add a **Start script**. It runs each time the server starts, after our own setup. It is not available in entrypoint mode with arguments.
7. Set **Default disk size** and **Minimum VRAM**, then **Save template**.
8. Select **Deploy with this**.

## A private registry

Go to **Templates > Registries** and add the registry host, a username and an access token that can read the image. Then choose the login under **Private registry login** in the template form. The token is stored encrypted, only its last four characters are shown, and it is used only to pull the image. A login cannot be removed while a template uses it. A shared copy of a template does not carry the login, so others can run it only if the image is public.





## Test, then change

You cannot change the image, variables or start script of a running server. To test a change, deploy a new server, or use **Recreate container** in the server settings, which pulls the same image again with the same settings. It erases every file on the server, `/workspace` included, so copy off what you need or keep it on a volume first.

## If the image does not start

See [If a server fails to start](/docs/if-a-server-fails-to-start) and the **Logs** tab of the server. An image that exits at once, needs a port that is not in the template, or cannot be pulled (wrong name, private without a login) will not reach **Running**.

You are responsible for the software you run and its license terms.
