Info The vanishing container

Currently reading
Info The vanishing container

4,027
1,378
NAS
DS4l8play, DS202j, DS3623xs+, DSM 7.3.3-25847
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

I can’t find any option to restore just the settings. 1710356648 Phew, managed to fix it. Within the...
Replies
4
Views
401
  • Question
Open an issue on that GitHub page. The developers will be glad to assist. OP has posted two threads on...
Replies
5
Views
965
I'm happy with email notifications but in v0.3.3 of dockcheck the author added apprise notifications...
Replies
4
Views
1,043
Hi, I'll start by saying, my understanding of networking is very limited so I apologize if I'm asking an...
Replies
0
Views
692
You can run cmd.exe to get a command window from which you can execute SSH commands. However, my personal...
Replies
36
Views
3,003
I can confirm it's not in the list. All I've got are the following: Worth noting that I'm already...
Replies
4
Views
1,111
I would like to thank you all for your efforts, but unfortunately still not working . But I found a...
Replies
23
Views
2,203

Welcome to SynoForum.com!

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

Registration is free, easy and fast!

Back
Top