There is a docker php container run by docker run command.
1.How to pass by using docker run command a variable to the php container?
2.How to read value of the passed variable from php script in that container?
Context: PHP script inside a docker container connects to a database that is located on an another container. I need to run several php containers that connect to differently named database containers.
I can't have hardcoded database container name inside the php script and need to pass database conatainer name dynamically when I use docker run to startup php containers.