I tried this several years ago using a nalgene bottle when we were discussing water containers that you could boil water in for purification. It worked just fine, but it would take several rocks to boil a couple gallons of water, or at least some good sized ones. Also remember that the rocks will displace a similar volume of water, so don't overfill your container with what will be very hot water.