KarlF12
November 26, 2020, 3:13pm
5
The occ utility works with Docker, but it has to be run inside the container. You can do it like this. Where it says “nextcloud” put the name or ID of the container.
6.2.Running OCC
If you have any experience with Nextcloud, you know there is a command line utility called OCC that you’ll need from time to time. OCC is inside the Nextcloud Docker container. To make life easier, you can add a bash alias so that you can easily run OCC commands from outside the container.
echo alias occ=\'docker exec -it -u www-data nextcloud php occ\' >> ~/.bashrc
. ~/.bashrc
You can now simply type occ and the command will be sent to the Nextcloud container.