[Suggestion] Expose system bus socket to container #1188
Replies: 13 comments 2 replies
-
This sadly is incompatible with a lot of situations, like Alternatively you can set |
Beta Was this translation helpful? Give feedback.
-
Is that something that can be set by default then? I'm not personally using a container that has |
Beta Was this translation helpful? Give feedback.
-
If you want it to be the default, you can add it to env at creation time |
Beta Was this translation helpful? Give feedback.
-
I meant by default here in the repo 😉 |
Beta Was this translation helpful? Give feedback.
-
Can you point me to some example of apps that would benefit from this? So I can do some testing 👍 I'm a bit hesitant on this, as adding this by default would hamper the initful containers |
Beta Was this translation helpful? Give feedback.
-
Well for one every Flutter app using Canonical's But if it breaks other stuff then that's a good enough reason for me to not do it, don't worry 😉 |
Beta Was this translation helpful? Give feedback.
-
We van document this in the useful_tips so that the use case can be covered maybe |
Beta Was this translation helpful? Give feedback.
-
Note that I don't currently see a way to access the system dbus socket from within the container. |
Beta Was this translation helpful? Give feedback.
-
The correct path I think is So you can set As said previously this cannot be added by default, as it will break initful containers (which is probably the use case for you also) and it will make |
Beta Was this translation helpful? Give feedback.
-
I was about to open a ticket when I read this. For now, I think I've solved it by creating a symbolic link to
the method with |
Beta Was this translation helpful? Give feedback.
-
That works! Thanks that's an awesome solution due to being permanent, no messing around with environment variables any more. |
Beta Was this translation helpful? Give feedback.
-
Since this was one of the top results for query "container expose dbus system socket", let me chime in:
This is more obvious if you do Now, of course, you will have a separate problem if your application wants to access the session bus instead of a system bus; on the host machine, the former will be somewhere in your homedir, not in systemwide Footnotes
|
Beta Was this translation helpful? Give feedback.
-
Converted to discussion to keep it for future reference |
Beta Was this translation helpful? Give feedback.
-
Is your feature request related to a problem? Please describe.
I currently want to use an application in a distrobox container that requires access to the system bus. To do so it tries to access
/var/run/dbus/system_bus_socket
which exists on my host but is not available within the distrobox container.Describe the solution you'd like
/var/run/dbus/system_bus_socket
to be mounted inside the container.Describe alternatives you've considered
Uh, none.
Additional context
In this case the application is a Flutter one using Canonical's
dbus
package, I doubt that matters though.Beta Was this translation helpful? Give feedback.
All reactions