can't start docker container from task scheduler

Currently reading
can't start docker container from task scheduler

I have a docker container that syncs - want to run it every hour - I tried to run it from task scheduler with this command:
  • docker container start gphotos-sync
and got this:
  • Got permission denied while trying to connect to the Docker daemon socket at ....
I tried adding a sudo and it's asking for a password. I would have assumed the task scheduler runs things as root. Any idea how to fix it? I know I can go in and add a cron job, but I was hoping to achieve a world I'm maintaining purely from the ui.

Thanks!
 
DSM 7 - and tht's what I'm trying to figure out how to do - can't see any option to run it as root
-- post merged: --

ok - I'm stupid - I was sort of expecting a check box like "run with higher privileges" - completey ignored the user on the front page - this fixed the problem. Thanks!
 

Create an account or login to comment

You must be a member in order to leave a comment

Create account

Create an account on our community. It's easy!

Log in

Already have an account? Log in here.

Similar threads

  • Question
One-eyed-king, thank you very much for the answer. I have attached screenshots of the Syno GUI settings...
Replies
2
Views
1,883
Hi, For the past two days some of my docker containers won't startup properly after hibernate. I'm seeing...
Replies
0
Views
2,130
That's a brilliant question: you should raise a feature request to Synology. Since they already use a...
Replies
14
Views
5,220
Replies
3
Views
7,954
Thanks for the suggestion- I’m going to check if it does.
Replies
2
Views
4,409
  • Solved
If you are still interested in learning it: If you know how to write bash scripts, it should be possible...
Replies
5
Views
910
I can’t find any option to restore just the settings. 1710356648 Phew, managed to fix it. Within the...
Replies
4
Views
390

Welcome to SynoForum.com!

SynoForum.com is an unofficial Synology forum for NAS owners and enthusiasts.

Registration is free, easy and fast!

Back
Top