run a command inside nextcloud docker


Recommended Posts

Hi there

 

I'm using nextcloud in a docker container and want do run a command inside the container with the plugin user script.

 

The command:

sudo -u abc php7 /config/www/nextcloud/occ preview:generate-all -vvv

How can I add it in a user script on unraid to run it in the container?

 

any help is greatly appreciated.

cracksilver

Link to comment
  • 3 years later...
On 4/15/2020 at 7:55 AM, Squid said:

via the docker exec command

docker exec nextcloud sudo -u abc php7 /config/www/nextcloud/occ preview:generate-all -vvv

 

Hi Squid, I'm trying to run this command docker exec nextcloud sudo -u abc php7 /config/www/nextcloud/occ security:bruteforce:reset 12.34.56.678

 

When I do I get this output: Could not open input file: /config/www/nextcloud/occ

 

Any ideas?

 

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.