3
2

More than 3 years have passed since last update.

standard_init_linux.go:211: exec user process caused "no such file or directory"の解決方法

Last updated at Posted at 2020-04-15

はじめに

Intellij + Docker + SpringBoot (Maven) で環境構築している際にstandard_init_linux.go:211: exec user process caused "no such file or directory"のエラーが発生したためこれの解決方法を記載します
screenshot.7 - コピー.jpg

だいたい調べると
改行文字がCRLFになっていると出てきます。

ここで本題

「intellij + 改行コード変換」でググって全ファイルをintellij内からCRLFからLFに変更
再度docker-compose.ymlからdockerを起動しても同じくstandard_init_linux.go:211のエラーが出てしまう。。。
もしかしたらgit cloneした時点でLFにしないといけない?

気をつけて!Git for Windowsにおける改行コード
https://qiita.com/uggds/items/00a1974ec4f115616580

上記でgit for windowsを使用する上での注意点が記載されていた
git config --global core.autocrlf inputで設定を書き換える

この状態でgit cloneすればLFでファイル落とせるので
dockerを起動すれば無事に解決です。

最後に

intellij内からCRLF→LFにしても動かない。。。と思っている方がいれば参考になれば幸いです。

以上、初投稿でした\(^o^)/

3
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
2