Skip to main content

Nextcloud resources

·1 min

If I want to run some Nextcloud commands inside the Docker container, here’s how I can login from the host into the container with the right user privileges:

docker exec -it -u 33 docker-nextcloud_app-1 bash

Or, to run a command as root from outside:

docker-compose exec nextcloud_app whoami

Resources:

  • Guide on how to run OCC commands inside the installation here.
    • Some configs here are set through Docker environment variables and I found it difficult to tweak them after the first installation. Something to keep in mind.
  • Docker documentation here.