We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fcce2be commit 6f1731eCopy full SHA for 6f1731e
agent/agentcontainers/containers_dockercli.go
@@ -59,6 +59,11 @@ func (dcl *DockerCLILister) List(ctx context.Context) (codersdk.WorkspaceAgentLi
59
}
60
61
dockerPsStderr := strings.TrimSpace(stderrBuf.String())
62
+ if len(ids) == 0 {
63
+ return codersdk.WorkspaceAgentListContainersResponse{
64
+ Warnings: []string{dockerPsStderr},
65
+ }, nil
66
+ }
67
68
// now we can get the detailed information for each container
69
// Run `docker inspect` on each container ID
0 commit comments