Runs stuff in a docker and captures output