4
2

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 5 years have passed since last update.

starting container process caused "exec: \"docker-entrypoint.sh\": executable file not found in $PATH": unknown エラーが出た時の対処方法

Posted at

AKSで自前のコンテナイメージをkubectl applyしたときにPodが起動しませんでした。
kubectl describe podで見てみると以下のようなエラーが出ていました。

Error: failed to start container "containerName": Error response from daemon: OCI runtime create failed: container_linux.go:345: starting container process caused "exec: \"docker-entrypoint.sh\": executable file not found in $PATH": unknown

docker-entrypoint.shに実行権限が付いていないことに起因して出力しているエラーです。
docker-entrypoint.shに実行権を付与して、イメージをビルドし直して、AKSから起動してあげるとうまく動作しました。

以上

4
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
4
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?