fix hostname generation with --net=host Upstream-commit: 8091157038fe582d5d674cc743c87b808036d80d Component: engine