The incident related to Nathan Baker chasing "someone" around a car in the grounds of The Mallard pub, in Brookside Avenue, Telford, on August 29 last year.
CCTV footage played to the court showed the 29-year-old captured on film initially being a bystander while several others were involved in fighting.
Then he is seen moving around with a knife in his hand before being confronted by other customers.
Prosecuting barrister Miss Amiee Parkes said: "He was pinned down on the table by two customers. He had the knife up his sleeve. He tried to struggle.
"They told him they would let him go if he dropped the knife first which he did."
Mr Kevin Jones, mitigating barrister, said it was important to view the matter in the context of the events of that evening and that no-one else involved in the fracas had been prosecuted.
"Whoever it was who was arguing, was not Nathan Baker. During this incident he says he picked up a knife which he found outside. That is no excuse for his behaviour," Mr Jones added.
Mr Jones said Baker hoped to be able to see his mother, who is ill, on his release and planned to join his partner in Bournemouth in the future.
Baker, of Langley Crescent, Dawley, admitted one offence of possession of a bladed article at Shrewsbury Crown Court on Friday.
The court also heard that the defendant had 24 previous convictions for 41 offences including possession of a blade in 2007, robbery in 2010, burglaries and thefts.
For the latest offence he was jailed for 12 months. He must serve half minus time already served in custody on prison remand before being released on a supervision order.
Judge Peter Barrie also ordered the forfeiture and destruction of the knife.