Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

ExtensionVM does not resolve containers in a composefile

未关闭
#201 2 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
30/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
停滞
技术栈
docker, docker-compose
领域
backend, cli

调研方向

Start at the ddClient.extension.vm?.cli.exec entry point and inspect how a compose group and its target container are resolved. Reproduce the issue with an extension using more than two containers, then check the debug-window error. Done means exec can select and run a command in any specific container in the compose group.

由索引模型根据 Issue 内容生成。

描述

documentation enhancement

Describe the bug
When trying to execute commands using the CLI in the VM using a compose file, the exec call tries to run the command into the compose grouping name and there is no way to access a specific container in the compose group.

Add the steps to reproduce
Steps to reproduce the behavior:

  1. Create an extension that uses more than 2 containers through compose file
  2. Try to execute any command with ddClient.extension.vm?.cli.exec
  3. See the error message in the debug window

Describe the expected behavior
There should be a way to get into any of the containers of the compose group and execute the command in that container.

Output of docker extension version:

Client Version: v0.2.4
Server API Version: 0.2.3

Output of docker version:

Client: Docker Engine - Community
 Cloud integration: v1.0.25
 Version:           20.10.16
 API version:       1.41
 Go version:        go1.17.10
 Git commit:        aa7e414
 Built:             Thu May 12 09:17:39 2022
 OS/Arch:           linux/amd64
 Context:           default
 Experimental:      true

Server: Docker Desktop
 Engine:
  Version:          20.10.16
  API version:      1.41 (minimum version 1.12)
  Go version:       go1.17.10
  Git commit:       f756502
  Built:            Thu May 12 09:15:42 2022
  OS/Arch:          linux/amd64
  Experimental:     false
 containerd:
  Version:          1.6.4
  GitCommit:        212e8b6fa2f44b9c21b2798135fc6fb7c53efc16
 runc:
  Version:          1.1.1
  GitCommit:        v1.1.1-0-g52de29d
 docker-init:
  Version:          0.19.0
  GitCommit:        de40ad0

Additional context
Using WSL2 in Windows 10

主要语言
没有语言数据
星标
157
派生
56
PR 合并指标
30 天内没有已合并 PR

环境准备

这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

docker/extensions-sdk 的其他 Issue

查看 docker/extensions-sdk 的全部 Issue

相似的 Issue

更多 Backend & API Design Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。