In response to the problem of sea empty container transportation under random conditions, a comprehensive consideration is given to the conversion problem between short-term container rental and heavy empty containers. Through inventory control strategies, the inventory of empty containers at the port is optimized, and an optimization model for empty container transportation is established. The total cost obtained under inventory control strategy is lower than the total cost of empty container transportation without inventory control strategy. At the same time, adopting inventory control strategy can effectively improve the utilization rate of empty containers.