--domainname doesn't work with rootless #40632
Labels
area/rootless
Rootless mode
area/runtime
kind/enhancement
Enhancements are not bugs or new features but can improve usability or performance.
Description
--domainname
doesn't work with rootless due to EPERM.Steps to reproduce the issue:
docker run -it --rm --domainname foo alpine
Describe the results you received:
Describe the results you expected:
It should work.
To avoid EPERM, runc should use
setdomainname(2)
rather than writing to/proc/sys/kernel/domainname
.We may need to amend OCI Runtime Spec.
Additional information you deem important (e.g. issue happens only occasionally):
--hostname
works .Output of
docker version
:Output of
docker info
:Additional environment details (AWS, VirtualBox, physical, etc.):
The text was updated successfully, but these errors were encountered: