docker-stack-wait
docker-stack-wait copied to clipboard
"Service not found" after upgrade
Hi there,
I get a "Service not found" error in some cases (and deployment was performed successfully)
I think it's related to this PR https://github.com/sudo-bmitch/docker-stack-wait/pull/18/files

I think it could be a race condition with get_service_ids function
Are you running docker stack deploy in the foreground? The services should exist after that command exits since there's no other place in docker where that's tracked (stacks don't exist in docker, it's just a label on a service).
If you can provide a reproducible example, that would help to debug.
Are you running
docker stack deployin the foreground? The services should exist after that command exits since there's no other place in docker where that's tracked (stacks don't exist in docker, it's just a label on a service).If you can provide a reproducible example, that would help to debug.
Hey, sorry for the delayed response.
I'm running docker stack deploy -c <file> <stack_name> and then the docker wait command. I think it's a race condition because the services eventually appear.