stop one docker image sending out unexpectedly shut down notifications

Currently reading
stop one docker image sending out unexpectedly shut down notifications

so I _love_ synology's docker - and run heaps of containers. However - there is one container - a google photos sync which is scheduled to run ever hour - it syncs, _then exits_. That all works perfectly and was setup from inside the synology ui using standard functionality.

And every time it finishes - I get an error, and an email, saying that the docker image was shut down unexpectedly!?

Is there any way I can suppress that for this container? For every other container - I still very much want this alert, because it would be a surprise - but the entire point of this container is to startup and then shutdown. Any ideas how I can fix this?

Thanks!
 
Image can’t be shutdown. It’s a container or even entire docker daemon. Follow your description it is about single container only.
You don’t have exactly described the container image source.

To find a reason of the event, check this:
 
I know exactly the reason the container shuts down. It's supposed to. it does its job, and finishes, until it is run again.

what I want to do is suppress the alert telling me of something behaving exactly how it is designed to behave.
 
And every time it finishes - I get an error, and an email, saying that the docker image was shut down unexpectedly!?
You didn't get an error. You received just an event notification, based on your default DSM Notification setup (which is defined as Error by Synology).

There must be a reason why DSM has information from docker daemon about an "unexpected stop'.
One of them is, how you handle this container
When it's a kind of ephemeral container, then it is better to run the container by docker run --rm -i image_name, than standard docker start <containername>
...reason why was asked the container details.

Also check:
Bash:
docker inspect <containername>
you need find
"ExitCode":
paste here

then you need to check docker events (as was proposed in my previous post) and find within the container events - 'die'.
 

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

Well IO parameters are not the best in htop. You will get better results with...
Replies
4
Views
8,604
Thanks... I tried something similar with rsync. The docker volume lived in...
Replies
7
Views
544
I can’t find any option to restore just the settings. 1710356648 Phew, managed to fix it. Within the...
Replies
4
Views
478
Good to hear. Deluge has not been updated for almost two years now as an app, nevertheless. But it gives...
Replies
12
Views
1,074
  • Question
Open an issue on that GitHub page. The developers will be glad to assist. OP has posted two threads on...
Replies
5
Views
1,065
I'm happy with email notifications but in v0.3.3 of dockcheck the author added apprise notifications...
Replies
4
Views
1,184
I am also trying to setup a Z-wave USB dongle and am getting stuck after following the same steps as...
Replies
1
Views
1,113

Welcome to SynoForum.com!

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

Registration is free, easy and fast!

Trending threads

Back
Top