Dockerfile,输出评估的命令

发布于 2025-01-22 15:33:27 字数 252 浏览 1 评论 0原文

无论如何是否有Docker创建输出评估的行?

例如,

# Dockerfile
COPY ${SRC}/file .

将回声步骤1/1复制$ {src}/file。

我希望它输出step 1/1复制src/file。

edit:我我是向其他与Docker文件兼容的包装工,例如buildah bud

Is there anyway to have docker create output the evaluated line?

for example

# Dockerfile
COPY ${SRC}/file .

will echo Step 1/1 COPY ${SRC}/file .

I want it to output instead Step 1/1 COPY src/file .

Edit: I'm open to other packers that are somewhat compatible with Docker files, such as buildah bud

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

阳光下的泡沫是彩色的 2025-01-29 15:33:27

与Buildah打开一个问题,我认为这将是一个合理的变化。

Open an issue with Buildah, and I think this would be a reasonable change.

墨小沫ゞ 2025-01-29 15:33:27

您可以尝试在下一步中使用ls列出目录的内容。

You could try listing the contents of the directory by using ls in the next step.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文