There is another way, weigh the container and write the weight down. Then fill the container while it's on the scales and write the weight down. Take the weight of the container away from the total weight and the result is the water.
1 litre of water = 1 kilogram (can't do it for gallons or pounds).
If you have 35kg total weight, and the container is 3 kg, then there is 32 kgs of water, which is 32 litres.