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
7,800
Looks like I triggered you somehow with my post: it was not my intention. I have no idea whether bash or...
Replies
4
Views
400
Use bind volumes, and the CM Project feature. Hyper Backup can then backup the volumes, and with a copy of...
Replies
2
Views
321
Those are two different layers: one is the management ui to perform actions on the api. the other is the...
Replies
12
Views
540
Thanks for your replies, but I found the solution: I had to allow port 8083 in the firewall.
Replies
5
Views
502
Thank you for this - I'll give it a go and see where I get - worst case I learn something as I go!
Replies
6
Views
623
I have no idea what you are doing, but I just tested it based on the instructions of the guide you linked...
Replies
11
Views
1,368

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