Skip to content

bug: agentcontainers log spam if Docker is unavailable #18709

@spikecurtis

Description

@spikecurtis

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

The following log is dropped at error level, over and over by the Agent if there is no Docker running.

Relevant Log Output

2025-07-02 06:03:56.330 [erro]  containers: updater loop ticker failed ...
    error= list containers failed:
               github.com/coder/coder/v2/agent/agentcontainers.(*API).updateContainers
                   /home/coder/repos/coder/agent/agentcontainers/api.go:571
             - run docker ps: exit status 1: "Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?":
               github.com/coder/coder/v2/agent/agentcontainers.(*dockerCLI).List
                   /home/coder/repos/coder/agent/agentcontainers/containers_dockercli.go:255
             - exit status 1

Expected Behavior

Not logged so frequently, and/or at debug rather than error.

Steps to Reproduce

Start a workspace without Docker running in it and look at agent logs

Environment

Additional Context

No response

Metadata

Metadata

Assignees

Labels

s3Bugs that confuse, annoy, or are purely cosmetic

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    pFad - Phonifier reborn

    Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

    Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


    Alternative Proxies:

    Alternative Proxy

    pFad Proxy

    pFad v3 Proxy

    pFad v4 Proxy