According to Wikipedia and Wiktionary its etymology is English. I also checked with A Pronouncing and Etymological Dictionary of the Gaelic Language by Malcolm McLennan, which has "tocsaid, n. f. a hogshead ; fr. the Eng." Gaelic for barrel is "baraille".
Perhaps the Gaelic word for barrel somehow came from the English measurement hogshead, but more likely that it was spoken Gaelic for barrel overheard and adopted by English speaking stevedores.
The Irish for hogshead and barrel can be found at https://www.focloir.ie