Keep restarting if set 'RestartPolicy' to 'always'
Issue #3
closed
The ldap docker instance keep restarting if 'RestartPolicy' to 'always'.
If the policy is 'False', then the docker instance behaves normally.
Comments (2)
-
repo owner -
repo owner - changed status to closed
Closed for lack of information.
- Log in to comment
You did not provide much info on what you're trying to do.
From what I could guess, by the RestartPolicy parameter, you're not running plain docker, but Kubernetes or some other form of orchestration. Did you set some liveness probes? If so, please keep in mind that the container does some initialization upon a fresh start, so set your timeouts accordingly.
If that doesn't help, I'd need more info. Please provide a command how you're staring the container, or it's definition, and logs from the failed container.