---
title: "Containers"
description: "Mimir's Docker control room: container state, CPU and memory, logs, start, stop, pause, restart, remove, exec and lazydocker."
canonical_url: "https://mimir.atnatewos.dev/docs/containers"
markdown_url: "https://mimir.atnatewos.dev/docs/containers.md"
last_updated: "2026-12-06"
x_farming_labs_generated_preamble: true
---

# Containers
URL: /docs/containers
LLM index: /llms.txt
Description: Mimir's Docker control room: container state, CPU and memory, logs, start, stop, pause, restart, remove, exec and lazydocker.

# Containers

A control room for Docker, in the spirit of [oxker](https://github.com/mrjackwills/oxker):
the list, the numbers and the logs on one screen, with the handful of actions
you actually use. Docker's other resources are one key away in
[lazydocker](https://github.com/jesseduffield/lazydocker), not reimplemented
here.

The layout is two panes: the container table (name, state, CPU, memory, image)
with logs under it, and the selected container's details beside it. Narrow
terminals stack the panes instead.

## What it does

- Lists every container, running first, then by name. `a` switches between all
  and running only.
- Shows live CPU, memory, image and state per row. `docker stats --no-stream` is
  sampled while the section is visible, never in the background.
- Details for the selected container: image, ports, created date, network and
  block I/O, PID count.
- Follows the selected container's logs (`docker logs --tail 200`), refreshed
  every few seconds without timestamps - most images print their own, and
  docker's ISO prefix makes every line wrap.
- `e` opens a shell in the container as a real Terminal pane
  (`docker exec -it <name> sh`), so history, resize and scrollback work.

## Keys

| Keys | Action |
| --- | --- |
| `j` / `k`, `g` / `Shift+G` | Move, top, bottom |
| `/` | Filter by name, image, state or ID |
| `a` | All containers / running only |
| `s` | Start a stopped container, or stop a running one |
| `p` | Pause a running container, or resume a paused one |
| `R` | Restart a running container |
| `x` | Remove a stopped container (asks first) |
| `e` | Shell into a running container |
| `l` | Open lazydocker for resources (images, volumes, networks, Compose) |
| `r` | Refresh now |
| `?` | Full key list |

## Safety

This is the one section that changes things, so the rules are explicit:

- **Nothing is forced.** Removal uses `docker rm` without `-f`. A running
  container must be stopped first, and removal needs a second `y`.
- **No bulk operations.** Mimir itself never prunes, removes all, or deletes
  images or volumes. lazydocker manages its own actions and confirmations;
  `docker compose` stays the declarative path.
- **No hidden polling.** The list and logs stop when you leave the section.
- **The CLI is the interface.** Mimir does not parse the Docker socket; it runs
  the same `docker` you do, so `DOCKER_HOST`, contexts and rootless setups keep
  working. Podman's Docker-compatible service works the same way.

## Docker resources: lazydocker

Mimir does not rebuild Docker's resource management. `l` opens
[lazydocker](https://github.com/jesseduffield/lazydocker) in a real PTY inside
Containers. It already covers the rest of Docker:

- images and image layers, including prune
- volumes and networks, including inspect and delete
- Compose projects and their services, including start/stop/restart

It uses the same `docker` CLI, `DOCKER_HOST` and contexts as the rest of
Containers, so rootless and remote setups keep working. `Ctrl+Alt+X` or the
`× close` label returns to the container list; `Esc` belongs to lazydocker's own
menus.

If lazydocker is not on `PATH`, `l` opens an install pane instead of failing
silently: it names the scope and shows the install command. Install it, then
press `r` there to recheck without leaving Mimir.

## Requirements

`docker` on `PATH` and a reachable daemon. If either is missing, the section
says exactly that - "not found on PATH" versus "cannot connect" - and `r`
retries after you fix it. `lazydocker` is optional; without it, Containers still
covers the container loop.

## What it is not

Not a Docker Desktop replacement. Mimir exposes only the container loop; images,
volumes, networks and Compose projects are lazydocker's job, reached with `l`.
Declarative Compose work and builds still belong to `docker compose` in a shell.

## Sitemap

See the full [sitemap](/sitemap.md) for all pages.
Docs-scoped sitemap: [/docs/sitemap.md](/docs/sitemap.md).
Well-known sitemap: [/.well-known/sitemap.md](/.well-known/sitemap.md).
