Connection method of container battery storage compartment