我的目标是在Azure DevOps管道上执行来自GitHub的Docker
为什么我的代码退出?
理论:
我认为它退出是因为它无法下载torch-xla==1.8
我现在怀疑这是由于日志限制而失败的:
#17 9.115 [output clipped, log limit 100KiB/s reached]
如何增加日志限制?
这是关于Docker还是Azure DevOps的问题
#17 [test 5/5] RUN cd ontology_tagger && poetry run invoke deploy
#17 sha256:3581942486c3acb9ab1c41574317a3ec25db6fbbb8fb47af887c47e5a6e1e607
#17 3.046 ============================= test session starts ==============================
#17 3.046 platform linux -- Python 3.7.12, pytest-3.10.1, py-1.10.0, pluggy-1.0.0
#17 3.046 rootdir: /home/worker/python/ontology_tagger, inifile: pytest.ini
#17 3.046 collecting ... importing Jupyter notebook from /home/worker/python/ontology_tagger/ontology_tagger/notebooks/ontology_tagger.ipynb
#17 5.762 Collecting torch-xla==1.8
#17 6.315 Downloading https://storage.googleapis.com/tpu-pytorch/wheels/torch_xla-1.8-cp37-cp37m-linux_x86_64.whl (144.6 MB)
#17 6.315 25l
| | 10 kB 20.5 MB/s eta 0:00:08
...
|███████████████████████▊ | 107.3 MB 41.9 MB/s eta 0:00:01
|███���█
#17 9.115 [output clipped, log limit 100KiB/s reached]
#17 ERROR: executor failed running [/bin/sh -c cd ontology_tagger && poetry run invoke deploy]: exit code: 2
------
> [test 5/5] RUN cd ontology_tagger && poetry run invoke deploy:
------
executor failed running [/bin/sh -c cd ontology_tagger && poetry run invoke deploy]: exit code: 2
##[error]Bash exited with code '1'.
Finishing: Test worker
请让我知道,如果有什么我应该添加到该职位
Docker默认使用json文件日志驱动程序保存日志文件,并且不限制文件大小。下面的CLI命令有助于增加日志驱动程序容器的限制
另外,如果您使用的是基于系统的Linux发行版服务器,则需要添加以下行,如下所示
/etc/sysconfig/docker
:BUILDKIT\u STEP\u LOG\u MAX\u SIZE=10000000
BUILDKIT\u步骤\u日志\u最大速度=10000000
有关更多信息,请查看Docker build
同时检查Rotating Docker Logs
相关问题 更多 >
编程相关推荐