1
I have a question about passing arguments in the Docker-Compose run:
I’m wearing a Dockerfile which has the following entrypoint:
ENTRYPOINT [ "/bin/wp" ]
CMD [ "--allow-root", "--help" ]
I need the --allow-root
is always included.
If I execute docker-compose run [service]
the argument goes by default, but if I run docker-compose run [service] option (option option...)
i need to include the argument manually.
Can it ALWAYS include the argument? I need to edit Dockerfile (I’m not the author) or can I do it via Docker-Compose? I tried the command
following this answer, but I was unsuccessful.