Skip to content

Listen on UDS inside a container #3670

Answered by sebadob
sebadob asked this question in Q&A
Discussion options

You must be logged in to vote

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:

d…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@sebadob
Comment options

Answer selected by sebadob
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants