'Run docker on Heroku with arguments

So, I am trying to run a Docker image (from docker hub) on Heroku.

An example of how I would run it locally:

docker run user/image -someoption $SOME_ENV_VAR

I have seen countless ways to run docker images on Heroku, but none show how to use arguments.

So how do I run a docker image on Heroku with arguments (from environnement).

Thanks in advance,
Robin



Solution 1:[1]

This is not possible as Heroku does not give you access to docker run.

You should be able to define ConfigVars which are injected as env variables into the Docker containers (or alternatively build a new image starting from the one you want to run)

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Beppe C