Why do "heroku run" commands get stuck for apps built in docker containers?


heroku run commands hang and show connecting... indefinitely for an app built with the container stack.


If your app does not have a container image named web you will need to manually specify the name of the image with the run command like:

heroku run bash --type worker -a <app_name>

For applications build with a heroku.yml file, you can check to see your app defines a web image:

    web: Dockerfile
    worker: Dockerfile

View our documentation for more details on how container apps are run:

Ask on Stack Overflow

Engage with a community of passionate experts to get the answers you need

Ask on Stack Overflow

Heroku Support

Create a support ticket and our support experts will get back to you

Contact Heroku Support