No government has ever tried to lockdown a 10+ million people city. It has a good reason not to.
But this Chinese government has to be different.
Just treat it like a flu.
Inform people and let them decide themselves. They are more likely stay at home.
If you lockdown and arrest sick people, they run to other cities.
Now you lockdown more cities. Rinse and repeat.