Is it possible to restart the container in docker layout if the service running inside it returns an exit code other than 0 ? the docker-compose.yml restart: always option does not work. Is there a way to solve the problem or is it a service problem and should I look for an answer inside the container?
I use supervisord, but adding the autorestart=true option does not work, even if the service fails with exit code 255 , the RUNNING_PID file (created by the system) is not deleted.
Thanks for any answer.
source share