toolbox
toolbox copied to clipboard
Set hostname to toolbox.{host_hostname}
Fixes https://github.com/containers/toolbox/issues/1059 when running X11 apps under kwin/Plasma desktop on Fedora Kinoite 37.
The random freezes experienced in #1059 are caused by DNS lookups of the unqualified host name 'toolbox' that the container uses by default, at least on my machine. Distrobox (https://github.com/89luca89/distrobox) uses the same style of container host name as this patch and has never had any issues for me under KDE.
An alternative solution which does not modify the host name is to explicitly add 'toolbox' to the hosts file or DNS, but it is more user friendly to have something that just works without any changes to the host configuration.
Build failed.
:x: unit-test FAILURE in 9m 34s :x: unit-test-migration-path-for-coreos-toolbox FAILURE in 3m 18s :heavy_check_mark: system-test-fedora-rawhide SUCCESS in 13m 17s :x: system-test-fedora-36 FAILURE in 28m 31s :heavy_check_mark: system-test-fedora-35 SUCCESS in 14m 26s
This is a duplicate of https://github.com/containers/toolbox/pull/1086
https://github.com/containers/toolbox/issues/98#issuecomment-1422038509