Compose stacks, images and networks

Manage Docker Compose stacks as a whole, pull and update images, and see how containers connect.

Besides single containers, a Docker tab has views for Compose stacks, images and networks. Switch between them at the top of the tab. For the basics of opening a host’s Docker tab, see Manage Docker containers over SSH.

Stacks

Stacks groups containers by their Docker Compose project. Each stack’s header shows how many of its containers are running and, where known, the path of its compose file on the server. Its containers are listed underneath with the usual container actions.

The buttons on a stack’s header, also in its right-click menu, are:

  • Stack logs: a terminal tab following the logs of every container in the stack, starting from the last 200 lines.
  • Start stack, Stop stack and Restart stack.
  • Take down: stops and removes the stack’s containers and networks. Volumes are kept. To bring the stack back, start it again from its compose file on the server. Duo22 asks before taking a stack down.

The right-click menu also has Copy name and Copy compose file path.

Whole-stack actions need docker compose on the host. Without it, the buttons are greyed out with Needs docker compose: Duo22 still shows stacks (from the containers’ labels), but you manage them one container at a time.

Images

Images lists the images on the host. On each image you can choose Run a container…, Copy name, Copy ID or Remove image. Containers using an image must be removed before the image can be.

To pull an image:

  1. Click Pull image in the toolbar.
  2. Enter the image as name[:tag], for example nginx:1.27 or ghcr.io/owner/app:latest. Without a tag, latest is used.
  3. Click Pull. The pull’s output shows as it runs.

The pull runs on the host, so for a private registry, run docker login on the host first.

Check for image updates

  1. In Images, click Check for image updates (the cloud button).
  2. Duo22 pulls each image’s tag again. Any tag that now points to a newer image shows as updated.
  3. Containers still running an older image are listed under Containers on an older image. Tick the ones to update. Containers from a Compose stack are restarted through their compose file; others are recreated with the same settings, so files written inside them (outside volumes) are lost.

While containers are updating, the dialog can’t be closed.

When containers are running an older image than the host has, a banner appears above the lists (outside the Images view) with an Update… button, and those containers show an update badge. You can also choose Update to the newer image from a single container’s menu.

Networks

Networks draws a map with three columns: This machine, Networks and Containers. It shows which containers are attached to which networks, the extra names they can be reached by, and which ports are published to the outside. Networks with no route out of the host are marked internal. Turn on Show unused networks to include networks with no containers.

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