-
Notifications
You must be signed in to change notification settings - Fork 5.3k
standard_init_linux.go:178: exec user process caused "no such file or directory" #215
Comments
Tried with |
@GingerMoon were you in the root of the application directory when you ran |
@ManoMarks Thank you very much for the prompt response! |
Hi guys, Regards, |
Hi GingerMoon, I was able to replicate your problem which is the LF character in dos/cygwin/Powershell is converted to CRLF when the repo is pushed to github. This occurs on a Windows 10 machine in either the Windows git client or Powershell. Use dos2unix to fix the affected files
|
Did you rebuild the containers to use the files that were changed?
|
many thanks! |
Hi GingerMoon, did you solve the problem? |
How to run tutorial in Windows:
|
it's caused by git for windows, line breaks are forced to dos format |
I am having similar issue:
This error message doesn't give me much of a clue what might be the error. Been struggling for a few hours to try to fix but don't really even know where to start :( Btw, I am not using windows and using dos2unix didn't fix it. No matter what I try I get this error... |
Which operating system are you using and what version of Docker? |
@spara Mac and Docker for Mac, version 17.12.0-ce-rc2-mac41 (21193). I have a go binary and am using |
Can you post your Dockerfile? |
|
OK, I see the problem. You're probably building your go binary on the Mac and trying to run it in Linux container. Try this when building your go binary: env GOOS=linux GOARCH=386 go build hello-world.go |
I'm building using the I'm also using And even so, if the binary was built incorrectly, why would it give an error that it cannot find the file? |
I don't think this is related to a specific lab we have on this repo @jchavannes, is it? The lab originally referred to was a Java debugging in IntelliJ lab. I realize this comes up second in the Google search for |
Ok, thanks.. |
Hi GingerMoon,I have same trouble with you,have you deal with it? |
maybe its the crlf on all your files.
|
@jchavannes Hey I am facing the same issue, were you able to solve it? |
@anshupitlia nope, I was not able to solve it and gave up on Btw, I ended up posting this question on docker forums as well - https://forums.docker.com/t/standard-init-linux-go-195-exec-user-process-caused-no-such-file-or-directory/43777 |
I didn't do anything, and suddenly it disappeared.Maybe it cause by the format of dos, you must be format it to Unix
发送自 Windows 10 版邮件应用
发件人: anshupitlia
发送时间: 2018年1月20日 4:55
收件人: docker/labs
抄送: jacksonary; Mention
主题: Re: [docker/labs] standard_init_linux.go:178: exec user processcaused "no such file or directory" (#215)
@jchavannes Hey I am facing the same issue, were you able to solve it?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.
|
@jchavannes i have the same problem. did you solve it? |
Experiencing the same issue with Docker engine 17.12.0-ce on Windows 10. The image that fails is built using FROM openjdk:8-alpine. |
@oranheim I was able to resolve issue by adjusting LF setting with GIT (See below), remove git repo, and then rebuilding from fresh repo.
|
@aguilita1 is this related to docker git sources config, or my image's git config? Will this be fixed in a coming docker release? |
I'm locking this issue going forward. Please migrate discussions/bugs to https://github.com/docker/for-linux, https://github.com/docker/for-mac, https://github.com/docker/for-win or https://github.com/moby/moby |
Which lab is it that you're having issues with?
In-container Java Development: IntelliJ Community Edition
https://github.com/docker/labs/blob/master/developer-tools/java-debugging/IntelliJ-README.md
Description
I got the error below after running the command: docker-compose up
webserver_1 | standard_init_linux.go:178: exec user process caused "no such file or directory"
Steps to reproduce the issue, if relevant:
Do the same as described in the link:
https://github.com/docker/labs/blob/master/developer-tools/java-debugging/IntelliJ-README.md
But is blocked at:
Running the application
Open a terminal and go to the application directory. Start the application with docker-compose
Describe the results you received:
webserver_1 | standard_init_linux.go:178: exec user process caused "no such file or directory"
Additional information you deem important (e.g. issue happens only occasionally):
Output of
docker version
:Docker version 17.03.1-ce, build c6d412e
Windows10 Enterprise
The text was updated successfully, but these errors were encountered: