The intermediate container count check raced with the existing zero-downtime retire of the previous container, so docker ps still saw the renamed-but-pending container until wait-to-retire elapsed.
The intermediate container count check raced with the existing zero-downtime retire of the previous container, so docker ps still saw the renamed-but-pending container until wait-to-retire elapsed.