I have a container I’m using to run some CLI PHP scripts. My intention was to specify the entrypoint in the Dockerfile as the php executable and then pass the script name via CMD and then the arguments for the script at the docker run prompt. I’ve tried tons of combinations for the entrypoint and the cmd in the Dockerfile with no success. If I run php script.php --argument1=x --argument2=y from the shell it works fine. I am attempting to run docker run image --argument1=x --argument2=y. Each time I get back the php usage information indicating an improper structure in the php command. Here are some of the things I’ve tried in my Dockerfile:
CMD /usr/bin/php registerwithmmc.php
Has anyone seen this behavior before and does anyone have any suggestions?