rootless: add Requires=dbus.socket#48134
Merged
thaJeztah merged 1 commit intomoby:masterfrom Jul 5, 2024
Merged
Conversation
thaJeztah
reviewed
Jul 4, 2024
thaJeztah
reviewed
Jul 4, 2024
On a cgroup v2 host with systemd, dbus is needed to avoid the following error:
```
docker: Error response from daemon: failed to create task for container: failed to create shim task: OCI runtime create failed: runc create failed
: unable to start container process: unable to apply cgroup configuration: unable to start unit "docker-170a4183e351e69835b82cc3134b97c8cbb0e6d3a6
16d5a0fb0ea473075062ad.scope" (properties [{Name:Description Value:"libcontainer container 170a4183e351e69835b82cc3134b97c8cbb0e6d3a616d5a0fb0ea47
3075062ad"} {Name:Slice Value:"user.slice"} {Name:Delegate Value:true} {Name:PIDs Value:@au [2872]} {Name:MemoryAccounting Value:true} {Name:CPUAc
counting Value:true} {Name:IOAccounting Value:true} {Name:TasksAccounting Value:true} {Name:DefaultDependencies Value:false}]): Interactive authen
tication required.: unknown.
```
Signed-off-by: Akihiro Suda <[email protected]>
4887118 to
206445f
Compare
Requires=dbus.socket
thaJeztah
approved these changes
Jul 5, 2024
Member
thaJeztah
left a comment
There was a problem hiding this comment.
LGTM
curious if there's should also be some "After=" and "Wants=" similar to the non-rootless variant, but I guess we can add some of those later if they would be good to add
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
read unix @->/run/systemd/private: read: connection reset by peer: unknown.) #42793- What I did
Added a dependency for dbus.
On a cgroup v2 host with systemd, dbus is needed to avoid the following error:
- How I did it
See the code
- How to verify it
- Description for the changelog
- A picture of a cute animal (not mandatory but encouraged)
🐧