mirror of https://github.com/docker/compose.git
When a service has 0 replicas to start, it don't try to create any container. However `composeService.startService()` still gets executed. This method checks if there's been containers created for that service beforehand. If there's none, it returns the following error: `no containers to start`. This change checks if replicas == 0 and exits early from `composeService.startService()` when that's the case. Signed-off-by: Albin Kerouanton <albinker@gmail.com> |
||
---|---|---|
.. | ||
api | ||
compose | ||
e2e | ||
mocks | ||
progress | ||
prompt | ||
utils |