gpt4 book ai didi

linux - Dockerfile:QIODevice::seek:无法在顺序设备上调用搜索

转载 作者:塔克拉玛干 更新时间:2023-11-03 01:13:42 38 4
gpt4 key购买 nike

我尝试在 docker 容器中构建应用程序。

如果我在我的主机上构建这个镜像,一切顺利。如果我将它推送到 git,hub.docker 会在构建日志中显示以下错误:

Step 12/22 : RUN qmake /opt/xflr5
---> Running in 026abab3988e
Info: creating stash file /opt/build/.qmake.stash
QIODevice::seek: Cannot call seek on a sequential device
QIODevice::seek: Cannot call seek on a sequential device
QIODevice::seek: Cannot call seek on a sequential device
QIODevice::seek: Cannot call seek on a sequential device
QIODevice::seek: Cannot call seek on a sequential device
QIODevice::seek: Cannot call seek on a sequential device
QIODevice::seek: Cannot call seek on a sequential device
Removing intermediate container 026abab3988e
---> e032d94fd731
Step 13/22 : RUN make
---> Running in 69db13aebe2b
g++ -Wl,-O1 -Wl,-rpath,/usr/local/lib -o xflr5 -L/usr/local/lib -lQt5Gui -lQt5Core -lGL -lpthread
/usr/lib/gcc/x86_64-linux-gnu/7/../../../x86_64-linux-gnu/Scrt1.o: In function `_start':
(.text+0x20): undefined reference to `main'
collect2: error: ld returned 1 exit status
make: *** [xflr5] Error 1
Makefile:235: recipe for target 'xflr5' failed

可以找到对应的Dockerfile here

为什么这发生在 hub.docker 而不是我的主机。我该如何解决这个问题?

最佳答案

https://github.com/docker/for-linux/issues/208

如果你使用 GitLab,你需要编辑文件/etc/gitlab-runner/config.toml

[[runners]]  
...
[runners.docker]
...
privileged = true
...
[runners.cache]

关于linux - Dockerfile:QIODevice::seek:无法在顺序设备上调用搜索,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57020120/

38 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com