Prerequisites
- An organization created in the Tinfoil Dashboard (Containers is an org-level feature)
- A Docker image published to a container registry
Tinfoil does not build your container — you need to bring your own Docker image. If you haven’t published one yet, see GitHub’s guide on publishing Docker images to GitHub Container Registry.
Step 0: Build and publish your Docker image
Before using Tinfoil Containers, you need a Docker image published to a container registry. Any registry that supports Docker images will work:Step 1: Create a repo from the template
On GitHub, click Use this template (make sure you’re signed in) → Create a new repository. Your new repo includes a pre-configuredtinfoil-config.yml.
Step 2: Configure your container
Edittinfoil-config.yml in your new repo. Replace the placeholder container image with your own and update the paths your app exposes:
tinfoil-config.yml
Step 3: Tag a release
Commit your config and push a Git tag:Step 4: Add secrets
If your container uses secrets (likeDATABASE_URL above), add them before deploying:
- Open the Tinfoil Dashboard
- Navigate to Tinfoil Containers > Secrets tab
- Click Add Secret, enter the name and value
- Secret values are encrypted and only accessible inside the enclave
Step 5: Deploy your container
- In the All Containers tab, click Create Deployment
- Enter a name for your container (lowercase, hyphens allowed — e.g.
my-api) - Select your repository — either enter
owner/repomanually or pick from your connected GitHub repos - The latest Git tag you just pushed (e.g.
v0.0.1) will automatically get selected. - Any env vars and secrets that your config contains will automatically show up.
- Click Deploy Container
Step 6: Wait for deployment
The dashboard shows your container as Deploying while the image is pulled and the enclave boots. This typically takes a few minutes to even 15+ minutes for enclaves with GPUs. Once it’s ready, the status changes to Running. If something goes wrong, it shows Failed.Step 7: Access your container
Once the status shows Ready, your container is live at:Updating your container
To deploy a new version, updatetinfoil-config.yml (e.g. change the image tag), commit, and push a new Git tag:
What’s next
Configuration Reference
All tinfoil-config.yml options.
Secrets & Env Vars
Manage environment variables and encrypted secrets.
Deployments
Blue-green updates, redeployments, and cloning.
Debug Mode
SSH into your container for troubleshooting.

