Docker构建永远运行,并占用无限的空间

发布于 2025-02-12 09:39:51 字数 409 浏览 1 评论 0原文

首先,我构建了一个dockerfile,在其中编写了简单的代码:

FROM centos
RUN echo "first commit" > /tmp/file1

然后,为了从这个dockerfile制作docker映像,我写了命令:

docker build -t <image_name> .

但是,在击中Enter Enter上,它永远流动并继续占用空间,直到我强行停止命令。它表明

Sending build context to Docker daemon  <space which is continuously inceasing>

请帮助。

谢谢。

First I have build a Dockerfile in which I wrote the simple code :

FROM centos
RUN echo "first commit" > /tmp/file1

then for making the docker image from this Dockerfile I wrote the command :

docker build -t <image_name> .

but after hitting enter it goes forever and continuosly taking space until I forcefully stopped the command. It show

Sending build context to Docker daemon  <space which is continuously inceasing>

Please help with this.

Thanks.

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

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

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文