Repository navigation
Container Engines
Studio ships no container engine. The Containers surface, the engine registry, the Engine API client and socket discovery are core; every engine itself arrives as a plugin. A fresh installation shows an offer to install one, and that is the delivery model working rather than a gap in it.
Epic #592.
| Core | A plugin |
|---|---|
| The Containers tab, ribbon and status-strip count | Which engines exist |
| The Docker Engine API client and its transport | Where an engine's socket is |
Socket discovery (DOCKER_HOST, docker contexts, defaults) |
Which CLI drives it, and where to get it |
| The engine registry and the choice between engines | What command starts it |
Docker survives in one internal name: DockerEngine, the client core speaks the Docker Engine API
with. That is the protocol, not the product. "Docker Engine API" is what the wire format is
called — Podman describes its own implementation of it as Docker-compatible — so the name is what
tells a reader which specification to go and read, and a neutral one would say strictly less. The
test of it: that class serves every engine in the catalogue, and none of them is Docker.
The argument reaches exactly that far and no further. The transport underneath was DockerTransport
on the same reasoning, and there it did not hold — it carries HTTP over a Unix socket or a named pipe
and knows nothing of any API, so it had been named after its only caller rather than after what it
does. It is SocketHttpTransport now. Anything naming the product left in #596; the layer that
implements the protocol keeps its name, and the layer that carries bytes is named for that.
An engine is a containerEngines contribution — the fourth contribution point, and the only one keyed
by nothing at all. A language server is chosen per language and a decoder per format; an engine is
chosen once for the application, because there is nothing to vary it by.
{
"id": "my-engine",
"name": "My Engine",
"description": "Talk to My Engine over its local socket.",
"detail": "Installs only the client. Studio speaks to the engine over its socket.",
"version": "1.0.0",
"apiVersion": "1.6.0",
"provision": {
"kind": "archive",
"downloads": {
"darwin-arm64": {
"url": "https://example.com/my-engine-1.0.0-darwin-arm64.tar.gz",
"sha256": "…",
"archive": "tar.gz",
"executablePath": "bin/my-engine",
"members": ["bin/my-engine"]
}
}
},
"contributes": {
"containerEngines": [
{
"id": "my-engine",
"displayName": "My Engine",
"priority": 50,
"entryPoint": "bin/my-engine",
"discovery": {
"hostVariable": "MY_ENGINE_HOST",
"dockerContext": false,
"sockets": {
"darwin": ["${XDG_RUNTIME_DIR}/my-engine.sock", "/run/my-engine.sock"],
"linux": ["${XDG_RUNTIME_DIR}/my-engine.sock", "/run/my-engine.sock"],
"win32": ["\\\\.\\pipe\\my-engine"]
}
},
"startCommands": { "darwin": "my-engine start", "linux": "my-engine start" }
}
]
},
"requires": []
}Studio talks to an engine the user is already running, over a socket that engine serves. What a plugin provisions is only the command-line client, for the two operations that are a terminal session rather than an API call: following logs, and opening a shell in a container.
So the download is a client binary. If upstream publishes one archive holding more than that — Docker's
static package carries dockerd, containerd and runc on Linux and Windows — name members and
only those are written to disk. The archive is still downloaded and verified whole: a hash of part
of a file is not a hash of the file.
Resolution follows the docker CLI's own order, and takes the first candidate that exists:
- The environment variable named by
hostVariable. - The active
dockercontext, whendockerContextis true. This is how Colima, OrbStack and Rancher Desktop publish their sockets, so honouring it reaches all three through the Docker entry. - The
socketscandidates for the platform, in order.
A candidate may name an environment variable as ${NAME}. That is how a rootless socket is described:
the path is per-user and known only at runtime. A candidate whose variable is unset is dropped, not
expanded to an empty string — /podman/podman.sock is a real path that would be probed and might even
exist, and a wrong answer is worse than no answer.
Only unix:// and npipe:// endpoints are opened. A context naming tcp:// or ssh:// is a real
Docker set-up, but not one a local socket transport can reach, so discovery falls through to the next
candidate rather than handing a hostname to a socket connect.
There is no way to declare that Studio can start your engine. Studio used to launch Docker Desktop,
the one engine it could, and that went with #596. An engine is not startable out of a client binary,
and a manifest claiming otherwise would claim something the host cannot honour. Say what the user
should run, in startCommands, and the surface offers it as text.
A platform with no entry in downloads means the plugin is unsupported there, and the Plugin
Manager says so rather than offering an install that cannot work. Podman publishes no Intel Mac build,
so podman-engine names no darwin-x64 download.
| Plugin | Engine | Notes |
|---|---|---|
docker-engine |
Docker | Client only. Also reaches Colima, OrbStack and Rancher Desktop through the active docker context. Docker publishes no checksums, so the pins are computed by hand on every version bump. |
podman-engine |
Podman |
podman-remote, the socket client. Upstream publishes shasums. No Intel Mac build exists. |
Using Studio
Contributing
How it works
- Architecture
- Runtime seams
- Agent access and permissions
- Agent MCP capabilities
- Agent surfaces, prompts and skills
- Source control
- Plugins
- Package managers
- Language servers — capability matrix
- Language servers — adding a server
- Setup wizard
- Container engines
Decisions