The target is inferred from the workspace
You almost never need to touch the selector. If the active workspace is an SSH session, the panel already opens pointed at that host.
How it works underneath
docker talks to a remote machine natively, over ssh://. TYBA only points the target:
Include config.d/tyba.conf into your ~/.ssh/config. The alias you registered is a real host to OpenSSH, so it is a real host to Docker.
No exposed daemon, no open port, no TLS to configure. It’s your SSH.
A remote container’s shell
Opening a remote container’s shell creates its own workspace, with the alias in the title and the host’s color. That is on purpose: it does not hijack your SSH pane. Mixing the two would make thesh: postgres on this machine look exactly like the one on the remote host, and confusing those two is expensive.
The limitations
What does work remotely: listing, logs, shell and remove.It’s slower — and that’s fine
The remote refresh pays for a handshake, the network and, on the first connection, whatever your SSH authentication asks for — typing the key passphrase, touching the YubiKey, approving in the agent. The local timeout measures a Docker that answers in milliseconds; the remote one gets a lot more slack, because with the local ceiling the remote panel only ever delivered an empty list. After the first connection,ControlMaster reuses the connection and the calls go back to being fast.
Availability is cached per target. Docker on this machine says nothing about Docker on a remote host, so each target has its own state — and the panel doesn’t keep re-asking every time you glance at it.
See also
Containers
The panel, the integration and what it does locally.
Hosts and groups
The registry, the key and the Include that make this work.