BEIRUT, Lebanon — An Iranian oil tanker caught in the escalating feud between Iran, the United States and other Western nations has anchored off the coast of Syria, according to images released by a space technology company.

The tanker, Adrian Darya 1, is carrying crude oil from Iran that Western nations suspected was bound for Syria in violation of sanctions imposed by the European Union. Formerly known as Grace 1, the tanker was stopped by British commandos off the coast of Gibraltar on July 4. It was held by Gibraltar until Aug. 15, after Iran gave written promises that it would not deliver its 2.1 million barrels of oil to Syria.

The controversy over the tanker’s movements comes as Western nations seek to punish President Bashar al-Assad of Syria for his forces’ scorched-earth tactics in the country’s civil war. President Trump’s administration has increased pressure aimed at stopping what it considers Iran’s destabilizing activities in the Middle East.

On Friday, John R. Bolton, Mr. Trump’s national security adviser, posted on Twitter a photo taken by Maxar Technologies, a satellite imaging company, that showed the tanker floating about two nautical miles from the Syrian port of Tartus.