standard_init_linux.go:211:exec用户进程导致“无此文件或目录". [英] standard_init_linux.go:211: exec user process caused "no such file or directory"

查看:90
本文介绍了standard_init_linux.go:211:exec用户进程导致“无此文件或目录".的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用随附的Dockerfile构建项目的docker映像,但是docker容器始终处于重启状态.以下是我看到的容器日志:-standard_init_linux.go:211:exec用户进程导致没有这样的文件或目录"有人可以用可能的解决方案向我证明,也可以说出此问题的根本原因是什么.

I am building the docker image of my project using the Dockerfile provided with it but docker container is always remains in restarting state. Below is the container log which I see:- standard_init_linux.go:211: exec user process caused "no such file or directory" Can some one prove me with the possible solution to it and also tell what's the root cause of this issue.

推荐答案

就我而言,此问题是因为我在Linux的docker文件脚本中使用Windows样式的行尾.

In my case, this issue was because I had Windows-style line endings on my docker file script for Linux.

我通过在文件上运行 dos2unix 来解决此问题,使其现在具有Unix样式的行尾

I fixed this by running dos2unix on the file so that it now had Unix-style line endings.

这篇关于standard_init_linux.go:211:exec用户进程导致“无此文件或目录".的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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