The invention discloses a cloud database security audit method based on Docker virtualization. The method comprises the following steps: S1, receiving a database name to be accessed and user login information; S2, analyzing the received user input information to obtain a user login account password, a database address and the database name, and generating a database connection instruction according to the information; S3, invoking the database connection instruction, and verifying the user login information; S4, starting a security audit module, monitoring a data stream between a user and a database container between the user and a cloud database to obtain a data source, analyzing requests of the user, and distinguishing a normal request from a malicious request so as to realize secure audit of the cloud database; and S5, operating the database by the user, if user authentication is successful, establishing a stable connection with the security audit module, and operating the database through the security audit module. The method improves the security.