docker executable file not found in $PATH

前端 未结 1 432
眼角桃花
眼角桃花 2021-01-16 01:38

Trying to run a rails migration on a running docker compose container throws this error:

$ docker-compose run webapp rails db:migrate
相关标签:
1条回答
  • 2021-01-16 02:03

    I don't know why this is happening, and I've filed an issue, but in the meantime, here's a workaround:

    docker-compose run webapp bundle exec rails db:migrate
    

    Please answer this question with a proper fix, and I'll accept your answer.

    0 讨论(0)
提交回复
热议问题