Ver código fonte

Merge pull request #954 from tilosp-docker/nextcloud-pr-120

Nextcloud: Add hint for using the nextcloud Console
yosifkit 8 anos atrás
pai
commit
229822f8c0
1 arquivos alterados com 14 adições e 0 exclusões
  1. 14 0
      nextcloud/content.md

+ 14 - 0
nextcloud/content.md

@@ -80,6 +80,20 @@ $ docker run -d nextcloud \
 -v theme:/var/www/html/themes/<YOUR_CUSTOM_THEME>
 ```
 
+## Using the Nextcloud command-line interface
+
+To use the [Nextcloud command-line interface](https://docs.nextcloud.com/server/12/admin_manual/configuration_server/occ_command.html) (aka. `occ` command):
+
+```console
+$ docker exec --user www-data CONTAINER_ID php occ
+```
+
+or for docker-compose:
+
+```console
+$ docker-compose exec --user www-data app php occ
+```
+
 # Running this image with docker-compose
 
 The easiest way to get a fully featured and functional setup is using a `docker-compose` file. There are too many different possibilities to setup your system, so here are only some examples what you have to look for.