At least three container ships were hit by gunfire in the Strait of Hormuz on Wednesday, maritime security sources and the United Kingdom Maritime Trade Operations (UKMTO) said.