The invention provides a data processing script program running method and a data processing container, and the data processing container communicates with a data processing system, receives a data processing script program submitted by the data processing system and returns a script running result; the data processing container comprises a starting module, a safe sandbox module, a third-party library management module, a container log module, an external data interface module, a script execution engine module, a script execution interface module and a container management module. The method has the advantages that the process CPU of the data processing container is arranged; according to the method and the device, the use access limits of the memory, the file, the network, the socket andthe program library are limited, so that the running safety, fault tolerance and controllability of the data processing script program are improved, the complex, flexible and personalized data processing requirements are met, and the influence of the data processing script program on a data processing system is reduced.