Skip to main content

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.

ImageWhat's insideSizePlatforms
yuccastream/tunatuna-cli on Alpine: full-featured tunnels and the rest of the platform~13 MBlinux/amd64, linux/arm64, linux/arm/v7
yuccastream/tuna-tinytuna-tiny FROM scratch: a single HTTP or TCP tunnel without middleware~2 MBlinux/amd64, linux/arm64, linux/arm/v7, linux/arm/v6, linux/arm/v5, linux/riscv64, linux/ppc64le, linux/s390x
tip

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​

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

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