Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nomad does not restart a failed container #198

Closed
dockerciworkshop opened this issue Oct 2, 2015 · 4 comments
Closed

nomad does not restart a failed container #198

dockerciworkshop opened this issue Oct 2, 2015 · 4 comments

Comments

@dockerciworkshop
Copy link

Description:
https://www.nomadproject.io/intro/ states Nomad will handle placement and recover from failures automatically.
However when killing a docker container Nomad does not restart it.

Repeat by:

nomad init
nomad run example.nomad
docker ps | grep redis 
docker kill <REDIS-CONTAINER-ID>
@bastiaanb
Copy link
Contributor

Nomad, does log the failure, just doesn't act on it:

    2015/10/02 13:04:18 [ERR] client: failed to complete task 'redis' for alloc 'b37c8d45-e69c-6d1e-e856-efa279837c7c': Docker container exited with non-zero exit code: 137

@joshua
Copy link

joshua commented Oct 2, 2015

I'm experiencing the same issue If I attached to the docker container and kill the service. Nomad does log the failure and change the allocation's state to 'dead' but doesn't attempt to restart or reevaluate.

May be related to #134.

@dadgar
Copy link
Contributor

dadgar commented Oct 2, 2015

Going to close as it is a duplicate of #134

@dadgar dadgar closed this as completed Oct 2, 2015
@github-actions
Copy link

I'm going to lock this issue because it has been closed for 120 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 30, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants