From f48779a075c8fc4a82b4170a16755bc20127ec35 Mon Sep 17 00:00:00 2001 From: Tilo Spannagel Date: Sat, 1 Jul 2017 12:35:54 +0200 Subject: [PATCH] Add docker-compose occ example --- nextcloud/content.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/nextcloud/content.md b/nextcloud/content.md index f4c2a710c..dc032eca8 100644 --- a/nextcloud/content.md +++ b/nextcloud/content.md @@ -80,6 +80,20 @@ $ docker run -d nextcloud \ -v theme:/var/www/html/themes/ ``` +## 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.