如何修复OCI运行时exec失败的"exec格式错误"?在Docker中? [英] How to fix OCI runtime exec failed "exec format error" in Docker?

查看:160
本文介绍了如何修复OCI运行时exec失败的"exec格式错误"?在Docker中?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Docker映像和找到的说明来设置ArchiveBox,此处.尽管它似乎已经在我的计算机上成功设置,但是我不能使用main命令添加单个链接.

I'm setting up ArchiveBox using the Docker image and instructions found here. Though it appears to have been successfully setup on my computer, I cannot use the main command to add an individual link.

设置"部分指示您

  • clone 一个github项目
  • cd 进入该文件夹, mkdir 数据
  • chmod 777 (我在Windows上使用Docker,所以我找到了Windows等效的 icacls data/grant Everyone:F ),
  • docker-compose up -d
  • 最后,要添加单个链接,请运行
  • clone a github project,
  • cd into that folder, mkdir data,
  • chmod 777 it (I'm using Docker for Windows, so I found a Windows equivalent icacls data /grant Everyone:F),
  • docker-compose up -d,
  • Finally, To add an individual link run

echo"https://example.com" |docker-compose exec -T archivebox/bin/archive

我希望输出的归档数据存储在我的数据/卷中,但似乎没有,并且出现以下错误 OCI运行时exec失败:exec失败:container_linux.go:344:正在启动容器进程导致"exec格式错误":未知

I expected the outputted archive data to be stored in my data/ volume but it does not appear to be, and I get the following error OCI runtime exec failed: exec failed: container_linux.go:344: starting container process caused "exec format error": unknown

推荐答案

/bin/archive是docker容器中的路径,运行带有路径文件的docker exec实际上会在主机上搜索路径文件,并且错误表示您的命令行无法找到archivebox或/bin/archive并运行

/bin/archive is a path form the docker container and running docker exec with a pathfile actually search the pathfile on your host, and the error ,means your command line can not find archivebox or /bin/archive and run it

这篇关于如何修复OCI运行时exec失败的"exec格式错误"?在Docker中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆