docker-compose.yml 文件中定义的一个且仅有一个节点无法构建。 docker-compose build
退出并返回代码 141。之前构建的相同配置没有问题。
docker主机日志文件docker.log报告错误:
level=error msg="Handler for POST /v1.25/build returned error:
Error processing tar file(archive/tar: invalid tar header):
最佳答案
我遇到了图像名称中无效字符的问题(没有 .swp 文件,没有并发)。
使用大写字母 --> 错误 141
。
例如。将: image: my-app-ARM:1.0
替换为 image: my-app-arm:1.0
似乎其他人也有同样的问题,分支名称中的字符无效: https://forum.gitlab.com/t/docker-compose-exit-code-141-on-shared-runners/9585/4
I found that I was tagging the docker images automatically from branch names and that some branches had invalid characters for tags and that resulted in a exit code 141.
关于docker-compose 退出代码 141,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45162510/