Closed iaguis closed 7 years ago
rkt is getting a new option to use the IPC namespace of the host: https://github.com/rkt/rkt/pull/3787.
I could also teach rkt how to use the UTS namespace of the host if needed.
@alban systemd-nspwan has an explicit check to abort on shared-UTS and --boot
. This comes from my split of SHARE_SYSTEM
, but needs some investigation to see if it is safe to drop (I assumed no).
@lucab oh indeed good point:
$ sudo SYSTEMD_NSPAWN_SHARE_NS_UTS=true rkt run --interactive docker://busybox
--boot cannot be used without namespacing.
I guess it is necessary because systemd will set the hostname based on /etc/hostname
. So this PR looks like the best we can do.
Then I guess this is fine to land, anything else missing?
Since host networking implies host UTS [1] and rkt doesn't support sharing the host's UTS namespace, let's at least set the hostname to the host's.