Info The vanishing container

4,289
1,468
NAS
DS4l8play, DS202j, DS3623xs+, DSM 8.025847-𝘣𝘦𝘵𝘢
Last edited:
I learned something new today. Maybe it will help someone else... or maybe not... I had a stopped container that apparently had a port conflict which I was unaware of. When I started the container, it failed to start. So, not giving it much thought, I cleared the container. In the past, this had no ill effects. But this time, I got a pop-up saying there was a port conflict.

OK... that should be an easy fix... right? But the container vanished after I acknowledged the warning. Not seeing the container under the Synology Docker or Portainer container, I launched the image for the missing container... that created a new container, but my container settings were absent. Finally, I deleted this new container and pulled up my config backup (fixing the port conflict before restoring). Relief!

Is it normal for a container to self-destruct over a port conflict when the "clear" function is initiated? And why?
 
Last edited:
Clear does not exist in the Docker world. It is a convenience feature introduced by Synology :)

On Linux in general it is possible to create (not run!) a new container that binds a host port that is already bound by another running container. Though, if you create it with docker run (=create+start) it fails to be created due to port conflict. If the old container was stopped before, then a port conflict is not possible.

Maybe a race condition? The process should be something like "stop old container, create a new container whith old container params using the latest image (as in newest, not necessarily the latest tag) , remove old container, start new container".

I am quite sure that you did find another bug in Synology's wonderful Docker re-distribution.
 

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

Thank you so much for the help! My gateway is 192.168.1.1 DHCP network is 192.168.1.0/24 on DSM I want...
Replies
3
Views
612
Another aspect that might indicate it is that the swarm mode finally works! It is the first Synology...
Replies
4
Views
1,578
Replies
3
Views
1,452
I can’t find any option to restore just the settings. 1710356648 Phew, managed to fix it. Within the...
Replies
4
Views
1,205
  • 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,852
I'm happy with email notifications but in v0.3.3 of dockcheck the author added apprise notifications...
Replies
4
Views
2,347
Hi, I'll start by saying, my understanding of networking is very limited so I apologize if I'm asking an...
Replies
0
Views
1,187

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