Skip to content

Containers view: compose stack checkbox and its container checkboxes get out of sync #864

Open

Description

@VHemmekam

Bug report

Bug description

In the Containers view, the checkbox of a compose stack (project group row) and the checkboxes of its child containers are not kept in sync. The selection state, the "Selected X of Y" counter and the bulk action buttons end up showing an inconsistent selection.

What I observed (stack with 4 running containers: geoserver, postgis, rabbitmq, mysql):

  • Clicking the stack checkbox sometimes selects only the stack row and none of its containers ("Selected 1 of 8"). Other times the same click selects the stack plus all 4 containers ("Selected 5 of 8").
  • Deselecting all child containers one by one leaves the stack row checked ("Selected 1 of 8", nothing visibly selected below it).
  • With all 4 child containers selected, the stack checkbox stays indeterminate instead of checked ("Selected 4 of 8").
  • Unchecking the stack while some children are selected leaves those children selected.
  • The stack row itself counts as an item in "Selected X of 8" (8 = 2 stacks + 6 containers), so the counter does not match the number of containers selected.

Expected:

  • Checking the stack always checks all of its containers; unchecking it always unchecks all of them.
  • The stack checkbox reflects its children: checked when all are selected, indeterminate when some are, unchecked when none are.
  • "Selected X of Y" counts containers only (or at least behaves consistently), so bulk actions (start/stop/delete) clearly apply to the containers shown as selected.

Reproduction steps

  1. Start a compose project with multiple services, e.g. docker compose up -d with 4 services.
  2. Open Docker Desktop > Containers. Keep the stack expanded.
  3. Click the checkbox of the compose stack row. Note the counter at the bottom right ("Selected 1 of 8" or "Selected 5 of 8").
  4. Click the stack checkbox again, then a few more times. The result alternates between "only the stack" and "stack + all containers".
  5. With the stack and all containers selected, uncheck the child containers one by one. After the last one, the stack row is still checked ("Selected 1 of 8").
  6. Select all child containers individually. The stack checkbox stays indeterminate instead of checked ("Selected 4 of 8").

Platform

Windows

Version information

Client:
 Version:           29.9.3
 API version:       1.56
 Go version:        go1.26.10
 Git commit:        5457199
 Built:             Tue Nov  3 21:46:10 2026
 OS/Arch:           windows/amd64
 Context:           desktop-linux

Server: Docker Desktop 4.99.0 (245822)
 Engine:
  Version:          29.9.3
  API version:      1.56 (minimum version 1.40)
  Go version:       go1.26.10
  Git commit:       70efc0e
  Built:            Tue Nov  3 21:41:42 2026
  OS/Arch:          linux/amd64
  Experimental:     false
 containerd:
  Version:          v2.4.2
  GitCommit:        b7a25261e029d68978bbf290df0a62fc819b3c51
 runc:
  Version:          1.5.2
  GitCommit:        v1.5.2-0-g29dd3dc2
 docker-init:
  Version:          0.19.0
  GitCommit:        de40ad0

OS: Windows 11 Pro 10.0.26200

Diagnostics ID

CDD64DD9-03E6-42F6-B5B5-C540D2996E97/20261118153449

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions