This paper makes an attempt to formulate a dynamic network model for the nearsea container allocation problem. This model takes container characteristics into account, including container size(20', 40') and ownership (owned, leased), and becomes a multicommodity network flow problem. This model is verified by a real-world case. Furthermore, the sensitivity analysis is taken by changing container demand and leasing costs, and is displayed graphically by a Geographical Information System software. The results seem promising.