permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Get “http://%2Fvar%2Frun%2Fdocker.sock/v1.49/containers/nextcloud/json”: dial unix /var/run/docker.sock: connect: permission denied
or
sudo docker exec --user www-data nextcloud occ
OCI runtime exec failed: exec failed: unable to start container process: exec: “occ”: executable file not found in $PATH: unknown
but
sudo docker exec -it nextcloud /var/www/html/occ
Nextcloud 31.0.4
Usage:
command [options] [arguments]
Options:
-h, --help Display help for the given command. When no command is given display help for the list command
-q, --quiet Do not output any message
-V, --version Display this application version
–ansi|–no-ansi Force (or disable --no-ansi) ANSI output
-n, --no-interaction Do not ask any interactive question
–no-warnings Skip global warnings, show command output only
-v|vv|vvv, --verbose Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
the later seems promising (but was not documented)