栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 面试经验 > 面试问答

standard_init_linux.go:211:exec用户进程与高山linux和python导致“没有这样的文件或目录”

面试问答 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

standard_init_linux.go:211:exec用户进程与高山linux和python导致“没有这样的文件或目录”

我猜您正在尝试在非arm64v8平台上构建docker映像。我会以为其余的答案。

提供的解决方案将特定于Ubuntu发行版(主机),但我猜它应该与其他Linux发行版上的类似。

解决方案1 [在Ubuntu 18.04上工作]

从https://github.com/docker/for-
linux/issues/56,
我们可以看到Debian(以及Ubuntu?)软件包中当前存在bug。

sudo apt-get install qemu-user-staticgit clone https://github.com/computermouth/qemu-static-conf.gitsudo mkdir -p /lib/binfmt.dsudo cp qemu-static-conf    uint16_t e_type;    uint16_t e_machine;          uint32_t e_version;    ElfN_Addr e_entry;    ElfN_Off e_phoff;    ElfN_Off e_shoff;    uint32_t e_flags;    uint16_t e_ehsize;    uint16_t e_phentsize;    uint16_t e_phnum;    uint16_t e_shentsize;    uint16_t e_shnum;    uint16_t e_shstrndx;} ElfN_Ehdr;

请注意,

binfmt
配置由docker共享,因此它将尝试获取
/usr/bin/qemu-arm-static
容器内部。这就是您仍然需要复制/ usr
/ bin / qemu-arm-static的原因。



转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/625858.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号