Cruma
DashboardDownload

Desktop app

Containers page

🧪 Private preview

🚧 In development — hosted containers require an experimental build and are not included in standard agent downloads. In a build with them, Containers appears in the sidebar under Configuration, after Kubernetes. Other builds have no such page.

The page defines OCI images that Cruma runs through a local Docker- or Podman-compatible Engine, shows their state, and controls them. For the settings behind it see Hosted containers; to send a frontend to a container see Routing.

The Containers page with an unavailable Engine, the Engine socket field and two container cards showing Start, Stop, Restart, Recreate, Remove and Edit buttons The Containers page with an unavailable Engine, the Engine socket field and two container cards showing Start, Stop, Restart, Recreate, Remove and Edit buttons
Containers: the Engine bar on top, one card per container below.

Engine bar

The bar at the top shows Engine connected with the Engine's kind (Docker or Podman), version and endpoint, Engine unavailable, or Engine not checked yet.

  • When the Engine is unavailable, the bar shows the error, every endpoint Cruma tried and short steps for your operating system, such as starting the Docker service or Podman's socket.
  • Check again probes the Engine on demand. It starts nothing.
  • Opening the page checks the Engine only when at least one container is saved. With none, the bar stays at Engine not checked yet until you press Check again.
  • Engine socket overrides discovery. Leave it empty to find the Engine from DOCKER_HOST, CONTAINER_HOST and the usual local sockets. On macOS, enter the Podman machine's API socket here. The value is saved with the containers.

The list

Each saved container has a card with its ID, a status badge, its image and these buttons: Start, Stop, Restart, Recreate, Remove and Edit.

BadgeMeaning
Not startedSaved, but Cruma is not managing it yet
WaitingManaged, but not started: Start with the agent is off and you have not started it
RunningRunning in the Engine
StoppedThe container exists and is stopped
FailedThe Engine reported an error, shown under the badge
Engine unavailableThe Engine cannot be reached
Not savedAdded or changed on this page and not saved yet

A running container lists its Endpoints as 127.0.0.1:<port> and the Environment for processes names it hands to hosted processes: CRUMA_CONTAINER_<ID>_<PORT>_HOST and CRUMA_CONTAINER_<ID>_<PORT>_PORT, with the container and port names in upper case. Click an item to copy it. Has problems marks a container whose definition does not validate yet.

With no containers, the page explains the feature and offers Add container, which fills in a PostgreSQL example (postgres, image docker.io/library/postgres:17-alpine, port db = 5432, password dev). Change the password before saving it anywhere shared.

The PostgreSQL example added to the Containers page with Undo and Save buttons in the header The PostgreSQL example added to the Containers page with Undo and Save buttons in the header
Add container prefills a PostgreSQL example; nothing is saved until you press Save.

Editing a container

Edit opens the container with three tabs, Config, Runtime Info and Logs. ← Back to list returns to the list. Delete removes the definition once you save.

The Config tab of the postgres container showing Container ID, Image, Pull policy, Command, Arguments and Working directory The Config tab of the postgres container showing Container ID, Image, Pull policy, Command, Arguments and Working directory
The Config tab edits one container's definition.
FieldMeaning
Container IDLower-case name that frontends and environment names use
ImageThe OCI image reference
Pull policyAlways, If not present or Never
Command, ArgumentsTick Override… to replace the image's entrypoint or arguments
Working directoryEmpty uses the image default
EnvironmentVariables passed to the container
PortsA name and a container port from 1 to 65535. Each port is published on a free loopback port
VolumesA Host directory (for example $cfg_dir/data) or a Named volume, a path in the container and an optional Read-only
Start with the agentStarts the container when the agent starts
RestartNo, On failure or Always
Upstream protocol, Backend timeoutHow routes reach the container; an empty timeout uses the global default
MiddlewaresListed for information. Add them in the configuration file; they can be removed here

Problems appear under the field that has them: a port that is not a number, a timeout that is not whole seconds, a variable set twice or without a name, and any invalid definition. Save appears in the header once something changed, with Undo beside it. If you save while problems remain, the page says Fix the problems below before saving and keeps your edits as not saved.

Changes to the image, command, arguments, working directory, environment, ports, volumes or restart policy make Saving will recreate this container. appear under the editor. Pull policy, start-with-the-agent, upstream protocol and timeout apply to the running container without recreating it.

Runtime Info shows the Engine's view: status, state, Engine container ID, name, exit code, last error, published ports and labels. It says the Engine has no container yet when none exists.

Logs shows the newest lines, up to 2,000, with stderr in red. Tail shows what exists now; Follow keeps streaming. The stream stops when you leave the page and starts again when you return. A container that is not saved has no logs yet.

The Logs tab with Tail and Follow buttons and an empty log The Logs tab with Tail and Follow buttons and an empty log
Logs: Tail or Follow, newest lines at the bottom.

Starting, stopping and removing

The buttons act on saved containers only; save a new container first.

  • Start, Stop and Restart act at once.
  • Recreate asks first: the container is removed and created again from its definition, and named volumes are kept.
  • Remove asks first: the container is stopped and removed from the Engine, named volumes are kept, and it stays absent until you start, restart or recreate it.
  • Stop all at the top asks first, then stops every container this agent owns.

An action returns immediately; the card's badge and error show the outcome.

A confirmation asking Recreate container 'postgres'? with Confirm and Cancel buttons above the container list A confirmation asking Recreate container 'postgres'? with Confirm and Cancel buttons above the container list
Recreate, Remove and Stop all ask for confirmation first.

Closing the agent leaves containers running; the next launch adopts them. Containers that Cruma did not create, or that belong to another configuration, are never touched.