diff --git a/docs/site-operations.md b/docs/site-operations.md index 6807b2f4..46f51be9 100644 --- a/docs/site-operations.md +++ b/docs/site-operations.md @@ -212,6 +212,7 @@ To execute commands using bench helper. docker run \ -v _sites-vol:/home/frappe/frappe-bench/sites \ --network _default \ + --user frappe \ frappe/frappe-worker:$VERSION bench --help ``` @@ -221,7 +222,11 @@ Example command to clear cache docker run \ -v _sites-vol:/home/frappe/frappe-bench/sites \ --network _default \ + --user frappe \ frappe/frappe-worker:$VERSION bench --site erp.mysite.com clear-cache ``` -Use it to install/uninstall custom apps, add system manager user, etc. +Notes: + +- Use it to install/uninstall custom apps, add system manager user, etc. +- To run the command as non root user add the command option `--user frappe`.