This is not "zero-downtime", this is "zero-downtime, maybe, as long as nothing goes wrong and the new container comes up immediately".
You would be much better off using something like dokku, which handles zero-downtime deploys properly and supports using a CHECKS file to verify that the new container is working properly before routing requests to it.