docker executable file not found in $PATH

前端 未结 1 433
眼角桃花
眼角桃花 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)
提交回复
热议问题