Rails console into Docker on Heroku

I’ve got a Rails app on a Docker image deployed to Heroku using heroku docker:release. I normally use heroku run rails console to access the console, but I am getting bash: /app/user/bin/rails: Permission denied. How do I access the Rails console via the Heroku-CLI command line?

  • Is it possible to mount an ISO inside a docker container? [closed]
  • How to use custom name in docker overlay network for containers network name?
  • My docker data-only container is empty
  • Connecting to mongo docker container from host
  • Docker error in Linux Mint
  • How can I know why Docker container stopped?
  • How to view log4j logs running inside a docker container?
  • Docker Host And Other Fundamental Questions
  • Unable to push my docker to Bluemix - Login error
  • Mounting a Laravel's .env file into a Docker container
  • How to share java-packages between docker-container via link?
  • Test automation with docker, travis and a large database
  • 2 Solutions collect form web for “Rails console into Docker on Heroku”

    Try this

    docker-compose run web rails c
    

    heroku run bundle exec rails console

    Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.