Docker contexts

Updated 28 November 2026

dp talks to the same daemon as docker. If docker ps shows your containers, dp does too, whether they run in Docker Desktop, colima, another local runtime or on a server.

Which daemon dp uses

  1. DOCKER_HOST, when it is set.
  2. Otherwise DOCKER_CONTEXT, when it is set.
  3. Otherwise the current context you chose with docker context use.
  4. The context named default uses the platform's default socket.

If the selected context doesn't exist or is invalid, dp stops with an error instead of quietly connecting somewhere else.

Local runtimes such as Docker Desktop and colima add their own context, so once docker context ls lists it and docker works, dp works too. Run docker context ls to see what you have; the current one has a *.

Switch inside dp

Press c on any list tab, or open settings with o and choose Docker context. Type / to filter by name or endpoint and enter to switch.

Settings screen listing the theme, Docker context, editor, CPU graph style, host panel, icons, mouse setting and config file
Settings, where Docker context is one of the rows.

One-off commands against another context

Docker's global flags pass straight through, so this works without switching anything:

$ dp --context prod ps

For a single run of the TUI, set the variable instead:

$ DOCKER_CONTEXT=prod dp

Connection status

Under the tabs, dp shows which context or endpoint it is bound to and whether it is connected. It checks the daemon every two seconds; when the daemon comes back after an outage, lists and open details refresh without losing your filters or selection. ctrl+r refreshes and checks right away. Changing the Docker CLI's current context in another terminal doesn't move a running dp.

Full reference: Daemon connection.