cleanup ip address and insert it into /etc/hosts inside container