iPhone 4S chaos in Hong Kong

Thousands left empty-handed as scalpers rush to feed a hungry gray market

Even with the support of Chinese riot police, police dogs, private security guards and an elaborate grid of metal barricades, Apple (aapl) could barely contain the chaos when the gates of the Hong Kong Apple Store opened Friday morning and customers began to run up the store's spiral glass staircase.

An Apple-sanctioned queue of roughly 1,250 were allowed to file in, while a larger crowd of more than 2,000 pressed for a chance. Many of the first customers were reported to be scalpers and professional line-sitters from South Asia (see here), and indeed resellers in hoodies could be seen rushing from the store with bags of five iPhones each to flip for a quick profit in Hong Kong's extensive gray market.

By noon, five hours after the gates opened, Apple had run out of stock.

It was a lesson in the economics of scarcity, documented at every stage by the Chinese blog M.I.C. Gadget. You can view its collection of photographs here.

Below: A YouTube video that shows the gates opening at 7 a.m. local time.

All products and services featured are based solely on editorial selection. FORTUNE may receive compensation for some links to products and services on this website.

Quotes delayed at least 15 minutes. Market data provided by Interactive Data. ETF and Mutual Fund data provided by Morningstar, Inc. Dow Jones Terms & Conditions: S&P Index data is the property of Chicago Mercantile Exchange Inc. and its licensors. All rights reserved. Terms & Conditions. Powered and implemented by Interactive Data Managed Solutions