LoginSignup
6
1

More than 3 years have passed since last update.

Dockerで exec user process caused エラー発生

Posted at

TL;DR

node.jsのイメージを扱う際にDockerfile内でENTRYPOINTを指定したが以下のエラーが発生。
ググるとgoの何かが足りないとか出てくるが別の原因がありそう。

node_1  | standard_init_linux.go:207: exec user process caused "exec format error"
node_1  | standard_init_linux.go:207: exec user process caused "no such file or directory"

原因

bashを指定していたが、node.jsのイメージにそもそもbashが無かった。
デフォルトで存在するshを指定して起動を確認。

start.sh
#!/bin/sh
6
1
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
6
1