Unfortunately, Docker does not provide a build-in function to restart unhealthy containers.
This can be achieved by deploying the publicly available container
willfarrell/autoheal beside the suSSHi Chef
container on the same host.
For this, please add the following service to your
autoheal: container_name: 'autoheal' restart: always image: willfarrell/autoheal environment: - AUTOHEAL_CONTAINER_LABEL=all volumes: - /var/run/docker.sock:/var/run/docker.sock
Afterwards, start it up with docker-compose up -d.