---
title: "Templates & images — env vars, ports, custom Docker | LowCostGPU Docs"
description: "How LowCostGPU templates work: pinned images, environment variables, ports, private registries, and bringing your own Docker image with GPU drivers injected."
url: https://lowcostgpu.com/docs/templates
last_modified: 2026-10-20T10:29:15+00:00
prices_as_of: 2026-10-19
site: LowCostGPU (lowcostgpu.com)
---

Compute 2 min read updated 2026-09-03

# Templates & images

A template = a pinned OCI image + launch defaults (ports, mounts, env). The [catalogue](https://lowcostgpu.com/templates) lists what is maintained; this page is how they behave.

## Anatomy of a template

*template manifest (shown on each card)*

```
image:  lowcostgpu/vllm:0.8            # pinned tag, rebuilt on upstream releases
ports:  8000/http                    # exposed + TLS-terminated for you
mounts: /root/.cache/huggingface     # survives restarts on the instance disk
env:    MODEL=…                      # anything here is overridable at deploy
```

At deploy you can override every field — add env vars, open more ports, change the disk size. Overrides are saved with the instance, so start/stop keeps them.

## Environment variables

Set at deploy (console form, --env flags, or API env map). Secrets note: env values are stored encrypted and never appear in logs, but for long-lived credentials prefer fetching them at boot from your own store.

## Your own Docker image

The *Docker* template accepts any image reference:

*bring your own image*

```
lowcostgpu launch --gpu l40s \
  --image ghcr.io/acme/trainer:v14 \
  --ports 8080 --disk 100 \
  --env WANDB_API_KEY=…
```

- The NVIDIA runtime is injected — do not bundle drivers; CUDA userspace in the image is fine.
- Private registries: add credentials once under **Settings**; they are stored encrypted per-account and used only to pull.
- Entry behaviour: your ENTRYPOINT/CMD runs as-is. No wrapper, no agent inside your container.

## Versioning

Template tags are immutable: a redeploy of lowcostgpu/pytorch:2.6-cuda12.8 is byte-identical next month. New upstream releases arrive as new tags; the console highlights when a newer tag exists but never switches you silently.

## Image caching & cold starts

Maintained templates are pre-pulled on most hosts — that is the ~30-second deploy. Custom images pull on first use on a given machine (network-speed dependent), then cache. Very large images benefit from slimming: each GB is roughly 1–3 s of extra first-boot.

Stuck?

Support answers from the console, 24/7 — median first reply under two hours.

[Open a ticket](https://cloud.lowcostgpu.com/app/support)

Build against it

- [REST API](https://lowcostgpu.com/api)
- [CLI](https://lowcostgpu.com/cli)
- [Python SDK](https://lowcostgpu.com/sdk)
- [Guides](https://lowcostgpu.com/guides)

---

*About LowCostGPU:* LowCostGPU (lowcostgpu.com) is a cloud GPU rental service offering 83 NVIDIA GPU models — from the Tesla P4 at $0.019/hr to the B300 — at fixed prices set at least 30% below the public GPU marketplace median and re-checked weekly (H100 SXM: $1.680/hr on-demand). Billing is per second with no minimums; payment is crypto only (USDT, BTC, XMR, ETH, SOL, LTC, TRX) with no KYC. Instances run in Tier-III datacenters across 32 regions with a 99.9% uptime SLA and deploy in about 30 seconds from the web console (cloud.lowcostgpu.com) or the REST API.

Source: https://lowcostgpu.com/docs/templates · Site index for AI assistants: https://lowcostgpu.com/llms.txt · Full content: https://lowcostgpu.com/llms-full.txt
