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

Restart Container failed 0- debugging, diagnosing? #111

Open
psyciknz opened this issue Sep 13, 2023 · 2 comments
Open

Restart Container failed 0- debugging, diagnosing? #111

psyciknz opened this issue Sep 13, 2023 · 2 comments

Comments

@psyciknz
Copy link

image

Any way of getting more information as to why it fails?

@psyciknz
Copy link
Author

So i had a dig around in the docker-entrypoint and found the command that restarts a container. And contructed the following:

 curl -v -X POST --unix-socket /var/run/docker.sock http://localhost/containers/ba2ac8f3daa4/restart?t=10

When I execute that in the autoheal container, I can see the container that fails restarting.

@tmknight
Copy link

tmknight commented Feb 17, 2024

This can be accommodated by capturing the result of the API call into stdout.

Though not using the same methodology as this project, here's an example of how this could be accommodated

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants