The only object in Minecraft that can be considered a “barrel” is the cauldron.
Cauldrons are stationary containers that can be used for brewing potions or cooking food. They contain the same ingredients as a chest, but any ingredient present will not take up inventory slots so they’re great for storage and transport.