Open valentinedwv opened 1 month ago
If a service exists, we get an error. Cases:
Ideas on how to handle these
we should add labels to services, this will make it easier to find them.
List services, include the status=true https://docs.docker.com/engine/api/v1.46/#tag/Service/operation/ServiceList look at service status, if there are running tasks, it's running, if there are competed tasks it is done if competed tasks =0 there is an issue.
https://docs.docker.com/engine/api/v1.46/#tag/Service/operation/ServiceDelete
If a service exists, we get an error. Cases:
Ideas on how to handle these
we should add labels to services, this will make it easier to find them.
List services, include the status=true https://docs.docker.com/engine/api/v1.46/#tag/Service/operation/ServiceList look at service status, if there are running tasks, it's running, if there are competed tasks it is done if competed tasks =0 there is an issue.
https://docs.docker.com/engine/api/v1.46/#tag/Service/operation/ServiceDelete