11
4

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.

docker execコマンドでbashに入れない時の対処法

Posted at

エラー内容

  • コマンド
docker exec -it [コンテナ名] /bin/bash
  • 実行例
OCI runtime exec failed: exec failed: unable to start container process: exec: "/bin/bash": stat /bin/bash: no such file or directory: unknown

解決策

以下コマンドに置き換える

docker exec -it [コンテナ名] sh

または

docker exec -it [コンテナ名] /bin/sh
11
4
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
11
4

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?