"Patrol boats from the Libyan navy stopped an oil tanker sailing in Libyan territorial waters from entering Al-Sedra port" yesterday, it said, cited by official news agency LANA.
"The ship, bearing the name Wael, tried on several occasions to enter the port but was prevented," the army said.
It was unclear who had chartered the vessel.
The Libyan navy said in a statement today that it would monitor ships off the coast near the oil terminals of Al-Sedra, Ras Lanouf and Brega.
More From This Section
"In case of refusal to obey orders, the ship will be stormed and taken to the nearest port," the Libyan navy added.
The government is locked in a stand-off with striking oil installation guards, whom it accuses of trying to sell crude oil on their own account.
Authorities have threatened to use force to prevent the sale of any oil that does not go through the proper channels.
This group, which operates in the eastern Ras Lanuf region, "is seeking to sell a cargo of 700,000 barrels," the NOC said.
Libya's main oil terminals have been hit by strikes since late July that caused production to plummet to less than 330,000 barrels per day before rising again to 670,000 bpd.
Even that figure fell short of the 1.6 million bpd averaged before the 2011 overthrow and killing of long-term dictator Moamer Kadhafi.
The strike has cost the North African nation USD 1.6 billion dollars in lost export revenues since July 25, according to Oil Minister Abdelbari al-Aroussi.