I got a new update at my optimisation work for docker. I checked other guys who tried the same thing and took some small different approches and added it into my current attempt.
I could resolve the finding ip address problem, by installing beside the in a another earlier post mentioned packets also dialog, net-tools and iproute2. [1]
I still have no idea where to find the part of the script what wants to change hostname and if the python folder resolving problem still exists. Does somebudy know what part takes care of the hostname. I will figure it out when i got the hostname override take out by myself.