Manage Docker containers over SSH

Open a host's containers, start and stop them, follow logs, open a shell, and run or edit containers.

Duo22 can manage the containers on any SSH host. Nothing needs installing on the server beyond Docker itself: Duo22 runs the host’s own docker command over your SSH connection. If plain docker doesn’t work for your user, it tries passwordless sudo docker, then podman.

Open a host’s containers

  1. Click Docker in the sidebar (⌘6 on macOS).
  2. Find the host (only SSH hosts are listed) and click Open.

You can also right-click a host on the Hosts page, or in the sidebar host tree, and choose Open Docker. The view opens as a tab titled Docker · host name. Its header shows the engine and version (Docker or Podman, with (sudo) if it works only through sudo) and how many containers are running.

At the top of the tab, switch between Containers, Stacks, Networks and Images. The Filter box narrows the list, and Refresh reloads it. The container and stack lists also refresh by themselves every few seconds while the tab is showing.

Work with a container

Each row shows the container’s State, Name, Image, Status and Ports. Use the row’s buttons, or right-click it (or click its ⋯ button) for every action:

  • Shell opens a terminal tab inside the running container. It uses bash if the container has it, otherwise sh.
  • Logs opens a terminal tab that follows the container’s logs, starting from the last 500 lines.
  • Start, Stop, Restart, Pause and Resume.
  • Details and edit opens the container’s settings.
  • Copy name and Copy ID.
  • Remove deletes the container, even if it’s running. Anything it stored outside a volume is lost, so Duo22 asks first.

Stopped containers are listed by default. Use Hide stopped containers in the toolbar to show only running ones, and Show stopped containers to bring them back.

Run a new container

  1. Click Run container (the + button) in the toolbar, or choose Run a container… on an image.
  2. Enter the Image. It’s pulled first if the host doesn’t have it yet.
  3. Optionally fill in Name, Ports (for example 8080:80 or 127.0.0.1:5432:5432), Environment variables (KEY=value), Volumes (for example pgdata:/var/lib/postgresql/data), Labels and Command. Press Enter after each port, variable, volume or label.
  4. Choose a Restart policy: Unless stopped, Always, On failure or Never.
  5. Click Run.

Change a container

Open Details and edit to see the container’s overview, ports, environment (click Show values to reveal them), volumes, networks and labels.

Under Change without recreating you can change the Name, Restart policy, Memory limit (for example 512m) and CPUs (for example 1.5), then click Apply.

Ports, variables, volumes and the image are fixed when Docker creates a container, so changing them means recreating it. Click Edit and recreate…, make your changes, then Save and recreate. The old container stops and a new one starts with your settings; the old one is only removed once the new one is running. If the new one fails to start, the old one is put back.

Its network, labels and current command carry over, but other advanced options don’t. Files written inside the container (outside its volumes) are lost.

Containers that belong to a Compose stack can’t be recreated this way: change them in the stack’s compose file instead. See Compose stacks, images and networks.

Still stuck? Check the FAQ, or browse thehelp centre.