-
Notifications
You must be signed in to change notification settings - Fork 88
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The /var/run -> /run symlink is missing in the base OS container image #410
Comments
There isn't "the" image here, this is the responsibility of the people producing them. This project is independent of them, in the same way podman is.
Yes, that's OK and valid. However, this is also a bug to fix in the OS components/packages which still reference Hmm, a lint for this would be great to have actually, cc #381 But if you're affected by this the simple thing to do e.g.:
Because the container image should not have this content to start with. The symlink should be created on firstboot via systemd tmpfiles.d. |
I guess in theory, we could change (We could just mask the problem and always blow away the files that are there, but I am not a huge fan of stuff like this as it could quickly escalate). But for now again please contact the people maintaining the OS/distribution base image and the packages for real fixes as I don't think we can in a maintainable/scalable way be papering over those issues here. |
@cgwalters, let me follow-up with the base image maintainers. |
The /var/run and /run paths are often used interchangeably. If /var/run symlink does not exist when an OS is booted, a new directory is created instead and we end up in a situation when /var/run and /run are not in sync.
The workaround to this issue is very simple. The following needs to be added to a Containerfile:
However, different contents in /var/run and /run may lead to problems that are not easy to predict or troubleshoot. Therefore, I'd like to suggest adding /var/run -> /run symlink to the OS container base image.
An example: DBus and NetworkManager Services Cannot Communicate
DBus service creates its socket in /run/dbus directory, but NetworkManager tries to access this socket using /var/run/dbus location. This leads to failure of NetworkManager service with cryptic messages.
The error hints about DBus problems, but the DBus service is up and running. One of the ways to troubleshoot this issue is to trace
nmcli
command system calls to understand how it tries to communicate with the DBus service.The text was updated successfully, but these errors were encountered: