尝试将容器移植到 ARM
trying to port container to ARM
我正在尝试将以下 container 移植到 ARM。
所以我做了以下
我下载了 Dockerfile
和 entrypoint.sh
然后我将 Dockerfile
中的第一行替换为 FROM arm32v7/mono:4.8
并成功构建它。
但是当我尝试使用完成的图像时,出现以下错误:
standard_init_linux.go:178: exec user process caused "no such file or directory"
这是否意味着它没有找到 entrypoint.sh
或它没有找到 entrypoint.sh
试图启动的东西?
有什么调试方法吗?
exec user process caused "no such file or directory"
Linux/Unix Shell 通常在文件不存在于该位置或文件格式不符合 Linux/Unix 的格式时抛出此错误。
上有针对这种情况的解决方法
您可以尝试将文件格式从 DOS 更改为 UNIX,您只需要安装 dos2unix
工具即可。
使用 dos2unix entrypoint.sh
并更改权限,使其对所有人 -rwx-
。
我正在尝试将以下 container 移植到 ARM。 所以我做了以下
我下载了 Dockerfile
和 entrypoint.sh
然后我将 Dockerfile
中的第一行替换为 FROM arm32v7/mono:4.8
并成功构建它。
但是当我尝试使用完成的图像时,出现以下错误:
standard_init_linux.go:178: exec user process caused "no such file or directory"
这是否意味着它没有找到 entrypoint.sh
或它没有找到 entrypoint.sh
试图启动的东西?
有什么调试方法吗?
exec user process caused "no such file or directory"
Linux/Unix Shell 通常在文件不存在于该位置或文件格式不符合 Linux/Unix 的格式时抛出此错误。
上有针对这种情况的解决方法您可以尝试将文件格式从 DOS 更改为 UNIX,您只需要安装 dos2unix
工具即可。
使用 dos2unix entrypoint.sh
并更改权限,使其对所有人 -rwx-
。