Skip to content

Container Engines

matthew edited this page Sep 6, 2026 · 1 revision

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.

What core owns and what a plugin owns

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.

Adding an engine

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": []
}

The payload is the client, not the engine

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.

Discovery

Resolution follows the docker CLI's own order, and takes the first candidate that exists:

  1. The environment variable named by hostVariable.
  2. The active docker context, when dockerContext is true. This is how Colima, OrbStack and Rancher Desktop publish their sockets, so honouring it reaches all three through the Docker entry.
  3. The sockets candidates 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.

What a manifest may not say

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.

Platforms

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.

Curated engines

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.

Clone this wiki locally