mautic/docker-mautic

sudo in mautic5

lordimac opened this issue · 3 comments

Hello, is sudo missing in mautic5 container or am I missing somehting? When clearing cache I can only use root, which sets the cache/prod folder to root permissions.

@lordimac

thanks for raising the issue.
sudo isn't missing in the image :)
But it's indeed not documented how to execute commands like e.g. php ./bin/console cache:clear

I created a PR to add this to the readme, which you can review here: https://github.com/mautic/docker-mautic/blob/04b91d86a81093873616f2e75b26a88caeea0999/README.md#running-console-commands-with-docker-compose

can you check and confirm this allows you to clear the cache without running into file permission issues?

Thank you! Yes, it works. I didnt even think about running this command through docker. Also runs without "compose" if you used another stack management tool (like dockge).

thanks! closing this issue and merging the referenced PR