To establish a ship model on the shore, assuming that the ship is moving on a micro-radial wave, first establish a six-degree-of-freedom ship motion equation under unconstrained conditions, and then consider the shore constraint conditions to simplify the ship's motion on the regular wave into pitch and lift Shen motion, combined with slice theory to calculate hull force. The Simulink tool of Matlab is used to simulate the built model, and the movement law of shore container ship is obtained.