Abstract:Research of container is becoming a hot problem because it is easier for application providers to pack, migrate, and deploy web applications than using virtual machines. An improved Genetic algorithm for resource allocation in container clouds called Double-GA was proposed in this paper. Double-GA is a two-level resource allocation strategy, the containers are allocated to virtual machines and virtual machines are allocated to physical machines. The mathematics model of two-level resource allocation in container-based cloud was presented and the overall energy consumption of physical resource was designed as the objective function in GA. A new dual-chromosome representation was used for new genetic operators such as initialization, crossover, mutation and fitness function. The experimental results show that Double-GA gains much better than the single-GA and BFD algorithm in all test instances.