Open greenmoss opened 2 years ago
@greenmoss Although I have encountered the same issue, I'm not sure there is a whole lot that can be done here. The problem is that the (standalone) docker
service does not have any knowledge of the dependencies/startup order between containers (as defined in docker-compose.yml
), it only knows it has N containers that were running before and need to be restarted.
I'm sure there is some additional tooling out there that could be used to integrate the docker-compose files into the container startup process, but this is definitely not the "out of the box" behavior.
Probably also why the readme for this repo states:
This docker-compose is provided as a way to allow "get up and running" quickly with StackStorm using Docker (based on st2-dockerfiles). It is not designed to be used in production, but rather a way to test out StackStorm and facilitate pack development.
Describe the problem
Versions
version 20.10.2, build 2291f61
version 1.29.2, build 5becea4c
To Reproduce Bring up cluster
docker-compose up -d
Look for exited containers
Stop/restart docker service
service docker restart
Look for exited containers
Follow/tail Docker logs
Note all the errors. It seems all of them are some variant of
pymongo.errors.ServerSelectionTimeoutError: mongo:27017: [Errno -2] Name or service not known
.To recover: