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