It depends on the size of the barrel. Water weighs 8.3# per gallon. So, a 55 gal barrel will float 8.3# x 55 - the weight of the barrel.
But, that's at complete submersion. To keep many docks out of the water only count on 50% of the barrel being submerged until the dock "skirt" wood touches the water.