Hacker News new | ask | show | jobs
by sascha_sl 1338 days ago
Because you want containers to be able to allocate ports that are already in use on your host. Or at least you don't want that to be a source of errors.
1 comments

On top of that, you usually want to isolate the container workload with an observable network abstraction instead of granting it full (albeit non-root) access to host network facilities (including sockets).

See https://medium.com/nttlabs/dont-use-host-network-namespace-f... for just an example of what can go wrong otherwise.