Working principle of container energy storage unit