Skip to content

Agent: allow listing running devcontainers #16268

@johnstcn

Description

@johnstcn

Expose a handler and endpoint in the Agent API to list all running devcontainers.

Running devcontainers will be identified using a combination of docker ps -q and docker inspect commands.

If the docker binary is not present in the agent's $PATH or the agent lacks required permissions, log the error and return the error on subsequent requests to the endpoint.

Also expose an endpoint in the Coder API to allow directly querying this agent API endpoint, similar to the "listening ports" endpoint.

For now, only support Docker via docker CLI.

Metadata

Metadata

Assignees

Labels

No labels
No labels

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