Even VM will need an IP-address-space shared with the host so you can access them.
That’s not a docker/container problem.
Btw, you‘re able to configure the Ip-space to use by passing an argument to the daemon or change it in daemon.json.
That’s not a docker/container problem.
Btw, you‘re able to configure the Ip-space to use by passing an argument to the daemon or change it in daemon.json.
Also, yes, it is a docker problem in particular. Linux has a solution for virtualizing networking for a subset of processes only: network namespaces. Docker doesn't use them by default, but can be taught to do so with the rootless kit. All rootless container engines use them by default.
as long as ipv6 link local are not disabled the fe80 addresses work nicely :)