Containers
The images run in Docker, Podman, Kubernetes and any other environment that runs OCI images: with Docker Compose, in CI and on servers where you don't want to install packages. The examples below use Docker; the commands are the same in Podman.
| Image | What's inside | Size | Platforms |
|---|---|---|---|
yuccastream/tuna | tuna-cli on Alpine: full-featured tunnels and the rest of the platform | ~13 MB | linux/amd64, linux/arm64, linux/arm/v7 |
yuccastream/tuna-tiny | tuna-tiny FROM scratch: a single HTTP or TCP tunnel without middleware | ~2 MB | linux/amd64, linux/arm64, linux/arm/v7, linux/arm/v6, linux/arm/v5, linux/riscv64, linux/ppc64le, linux/s390x |
In Kubernetes, the Kubernetes operator is more convenient than a client container.
Authentication
A container has no browser and no system keychain, so tuna login does not fit. Create an API key and pass it in the TUNA_API_KEY variable. For tunnels, the "For tunnels" preset is enough. More in Sessions and API keys.
Running
- tuna-cli
- tuna-tiny
docker pull yuccastream/tuna:latest
The container arguments are a tuna command:
docker run -d --name tuna --restart unless-stopped --network host \
-e TUNA_API_KEY=<your_key> yuccastream/tuna http 3000
Docker Compose:
---
services:
whoami:
image: traefik/whoami
restart: always
tuna:
image: yuccastream/tuna:latest
command: http whoami:80
restart: always
depends_on:
- whoami
environment:
- TUNA_API_KEY=<your_key>
🖌 Authenticity verification
Starting from version 0.27.4, all images are signed with cosign. To verify the image, install the cosign client, download the public key and run the check.
curl -sSLfO https://releases.tuna.am/tuna-cosign.asc
cosign verify --key tuna-cosign.asc docker.io/yuccastream/tuna:0.27.4
docker pull yuccastream/tuna-tiny:latest
If Docker Hub is unavailable, the same image is mirrored at code.tuna.am/tuna/tuna-tiny.
The container arguments are a tuna-tiny command. Flags and their environment variables are on the tuna-tiny page: for example, TUNA_SUBDOMAIN instead of -s. The image holds only the binary, with no shell, and runs as user 65534.
docker run -d --name tuna --restart unless-stopped --network host \
-e TUNA_API_KEY=<your_key> yuccastream/tuna-tiny http 3000
Docker Compose:
---
services:
whoami:
image: traefik/whoami
restart: always
tuna:
image: yuccastream/tuna-tiny:latest
command: http whoami:80
restart: always
depends_on:
- whoami
environment:
- TUNA_API_KEY=<your_key>
Running it in a container on a MikroTik router is covered on the tuna-tiny page. The images are signed with cosign. To verify, install the cosign client, download the public key and run the check.🖌 Authenticity verification
--network host lets the container reach a service on the host's localhost. Alternatively, attach the container to the service's network and use its name, as in the Docker Compose examples.
For Kubernetes without the operator, see the Kubernetes example.