-
I have an issue with UDS inside a container and was wondering, if I was missing something or need to do anything special about it when using I do have an application that works just like expected when I I am mounting the socket with a normal volume mount like Am I missing something or is there anything I need to do about it? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Just to check, what's your host OS? I only have macOS access and can believe that there's some oddities if running a Docker image on top of macOS and sharing a UDS file, so I'll write up a simple test case for debugging if that's your setup. |
Beta Was this translation helpful? Give feedback.
I was testing on Fedora 42. However, I was able to somewhat "solve" this. I am now pretty sure that it's something about the container engine, and
actix-web
is most probably just fine.I did some more tests, and when I place the socket file inside a directory, and I then mount the whole directory inside the container instead of mounting the file only, it works just fine.
The only thing that maybe could be improved is this kind of deadlock state the framework gets into during startup, but I am not sure what exactly this is about and if there is even a way to catch this.
Just for completeness, what I did before, just like it's mentioned in a lot of documentation online for mounting sockets: