0
1

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

docker-compose execコマンドでエラー:OCI runtime exec failed

Posted at

##環境
Docker version 20.10.7, build f0df350
docker-compose version 1.29.2, build 5becea4c

##状況

$ docker-compose exec app rails -v
OCI runtime exec failed: exec failed: container_linux.go:380: starting container process caused: exec: "rails": executable file not found in $PATH: unknown

##解決方法
railsコマンド前にbundle execをつける

$ docker-compose exec app bundle exec rails -v
Rails 6.1.3.2

##参考

0
1
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
0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?