Complete Lazydocker keyboard shortcuts reference — 16 shortcuts across 2 categories. Quick reference cheat sheet for Windows & Mac.
lazydocker is a terminal UI for Docker and Compose in the style of lazygit: panels for containers, services, images and volumes, and single keys that act on whatever is highlighted. The table lists the panel and container keys; X opens a menu of everything available for the current item, so the table is a starting point rather than a limit.
| Shortcut | Action |
|---|---|
| X | Open menu |
| [ | Previous tab |
| ] | Next tab |
| Enter | Focus main panel |
| Esc | Back |
| PageUp | Scroll up |
| PageDown | Scroll down |
| Q | Quit |
| Shortcut | Action |
|---|---|
| S | Stop container |
| R | Restart container |
| D | Remove |
| A | Attach |
| M | View logs |
| E | Exec shell |
| C | Run custom command |
| B | Bulk commands |
The most essential Lazydocker shortcuts are: X (Open menu), [ (Previous tab), ] (Next tab).
The Lazydocker shortcut for open menu is X.
Print the Lazydocker cheat sheet and keep it next to your keyboard for the first week, then switch to active recall: open Shortcut Speedrun and practice Lazydocker shortcuts against the clock until they're automatic.
Yes — use My Stack to combine Lazydocker shortcuts with any other platform on this site into one printable reference, which is useful if your daily workflow spans several tools.
Most do not — the underlying key is the same, but Lazydocker (like most software) maps Ctrl on Windows/Linux to Cmd on Mac for standard operations. Where a shortcut is platform-specific, this page notes the Mac variant next to the Windows one.
[ and ] switch tabs within a panel (logs, stats, config, top for a container), Enter moves focus into the main panel so its content can be scrolled and Esc steps back. PageUp and PageDown scroll the main panel — long logs live there. Q quits. Tab cycles between the side panels, and the mouse works too.
With a container or Compose service highlighted, S stops it, R restarts it and D removes it (with a prompt), M shows its logs in the main panel and A attaches to its process. E opens a shell inside the container, which is the fastest docker exec -it there is. B opens bulk commands for the whole Compose project — up, down, pull, rebuild — and C runs a custom command from your config against the item.
Custom commands and key bindings live in lazydocker's config file (the path is shown in the menu under X), which is how a team adds "tail the app log with jq" as a one-key action. lazydocker reads the Docker socket, so it sees the same containers as the CLI; on remote hosts set DOCKER_HOST before launching.
Open your assistant with this page preloaded as the source — great for follow-up questions like "which of these work in other apps?"