Ports & browser access

Gantry makes a container's service one click away, whichever engine it runs on — on your Mac or out on the internet.

Local Docker

Published ports open directly on localhost. Use the open-in-browser button on a port in the container's Overview → Ports section, or the menu bar.

apple/container

Each container has a routable IP, so its ports are reachable directly at http://<ip>:<port> — no publishing required. The Address section shows the IP (and DNS name, if any) with one-click open chips. Gantry uses the IP for the primary open action because it always resolves; see Local DNS names to also reach it by name.

Docker over SSH

Remote ports aren't reachable from your Mac directly, so Gantry creates a local SSH port forward on demand and opens localhost:<local-port>. Active forwards are listed in the Ports section, where you can change the local port, copy the URL, or tear the forward down.

Tip
The copy button puts a paste-ready host:port on your clipboard — handy for database clients and tools that are not browsers.

Share to the internet (Cloudflare Tunnel)

The cloud button on a published port exposes it to the internet over a Cloudflare Tunnel — no inbound ports opened on your network. Gantry installs cloudflared via Homebrew if it isn't already there, then offers two modes:

  • Quick tunnel — no Cloudflare account; Cloudflare hands out a temporary https://<random>.trycloudflare.com address. Anyone with the link can reach the port while the tunnel is up.
  • Named tunnel — route a hostname on a domain in your own Cloudflare account. A one-time cloudflared tunnel login (a button in the sheet) authorizes the zone; then enter the hostname and start.

The public URL appears under the port in the Ports section with open / copy / stop controls. Ports on SSH hosts are forwarded to your Mac first and then tunneled, and every tunnel is torn down automatically when you disconnect the host.

Note
A quick tunnel is public to anyone who has the URL — use it for previews and webhooks, not sensitive services. For access control, use a named tunnel with Cloudflare Access on top.