0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

standard_init_linux.go:228: exec user process caused: no such file or directory

Posted at

概要

Dockerfileで参考サイトからコピペしてきたものを、alpineベースに変更する際に発生。
タイトルのようなエラーメッセージからはわかりにくいので解決方法を共有しておく。

解決方法

entrypoint.shなどのシェルファイルの記述を bash -> ash に変更します。

entrypoint.sh
-#!/bin/bash
+#!/bin/ash

参考

原因は他のパターンもあるらしいので詳しく記載されている方のリンク貼っておきます。
https://qiita.com/kabik/items/5591f62c0ef6ddef5db2
https://dev.classmethod.jp/articles/how-to-fix-standard-init-linux-error/
https://rikeiin.hatenablog.com/entry/2021/01/25/163901

0
0
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
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?