Added ip retrieving to a Dockerfile