【docker】OCI runtime create failed … caused: exec: “bash”: executable file not found in $PATH: について!俺用メモ!

dockerで環境構築する際にalpineのイメージを使用するとたまに下記のエラーが出てくるのでメモしておきます。

スポンサーリンク




エラー内容

ERROR: for ... Cannot start service node: failed to create shim: OCI runtime create failed: container_linux.go:380: starting container process caused: exec: "bash": executable file not found in $PATH: unknown

ERROR: for node  Cannot start service node: failed to create shim: OCI runtime create failed: container_linux.go:380: starting container process caused: exec: "bash": executable file not found in $PATH: unknown
Encountered errors while bringing up the project.

bashがインストールされていないのでpathが見つからないというもの。

対応方法

bashのパッケージをインストールする必要があるのでdockerの場合は、Dockerfileに下記を追加する。

RUN apk add bash

以上、よろしくお願いいたします。

スポンサーリンク




シェアする

  • このエントリーをはてなブックマークに追加

フォローする

スポンサーリンク




%d人のブロガーが「いいね」をつけました。