LoginSignup
98
54

More than 3 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
98
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
98
54