move dockerhost setter to separate script