Sargent also banged a large rock, or something that sounded like a large rock, on the side of the container.
When the complainant reported the incident to the police, and a constable went to the property with an order for Sargent to leave, she tried to avoid arrest by lying down on her bed and pushing her feet into the constable's stomach, Ms Trinder said.
Defence lawyer Michael Vesty urged the jury to remember that it took "two to tango" when it came to the failure of a relationship.
He said Sargent accepted that she had locked her husband in the shipping container, but denied keeping him in there overnight.
Sargent had kept the door locked "long enough to suppress the threat that he posed that evening" to her.
"He was shut in the shipping container because of things that happened prior to that evening," Mr Vesty said.
The relationship between the couple was "punctuated by the power and control" the husband had over her, which had included a "host of threats".
Mr Vesty said it would be for the Crown to prove that Sargent did not act in self-defence.
The trial is expected to wrap up this afternoon.
- Greymouth Star