99
54

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.

【docker】starting container process caused "exec: "bash"エラーがでる場合はshを指定する

Last updated at Posted at 2018-07-05

alpine-linuxイメージのdockerコンテナで、docker execした場合にbashコマンドが使えない時はshを指定するとコンテナに入れる

次のようにdocker execすると...

$ docker exec -it {CONTAINER} bash

次のようなエラーが出た

OOCI runtime exec failed: exec failed: container_linux.go:348: starting container process caused "exec: \"bash\": executable file not found in $PATH": unknown

bashではなくshを指定するとコンテナに入る事が出来る

$ docker exec -it {CONTAINER} sh
99
54
1

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
99
54

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?