Port container crane (shore bridge) is an important equipment for container loading and unloading in the port, and its working mechanism includes four parts: lifting mechanism, operating mechanism, operating system and equipment structure. In this paper, digital twin technology is integrated to realize the digital mapping of quay bridge operation, which is the basis for realizing predictive maintenance. As a link between the physical space and the digital space, the digital twin is based on a new generation of information technology, which can complete the mapping of the real space in the digital space, so as to reflect the whole life cycle process of the corresponding physical equipment, and can derive related other functions on this basis. Firstly, the bridge was constructed using 3D modeling software solid works, and the mapping and model format conversion were carried out using 3ds Max. Finally, the 3D model was imported into Unity and the port virtual environment was built. Combined with C#, the driving engine of the lifting mechanism and operating mechanism of the quayside bridge is developed, and the virtual and real synchronous operation of the quayside bridge is finally realized.