Skip to main content
Apidly Cloud
Cookie policy

Analytics and ad cookies stay off unless you accept. Cookie policy

We would like to use Google Analytics and Microsoft Clarity to understand how the public pages are used, including page views and session recordings, and the Reddit Pixel to measure whether our ads on Reddit lead to visits and sign-ups. You choose here whether they are on. Rejecting changes nothing about how the site works.

Run your own image

Make a template from your own container image, with arguments, ports and a private registry login.

Last updated November 21, 20263 min read
View as Markdown

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.

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

Ready to try it?

Create a free account and add credit when you want to start a server. The smallest top-up is $10.

Create a free account

Was this helpful?

Still stuck? Contact us