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

fix: make container deletion more robust #672

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

decafcode
Copy link

Use the IsErrNotFound function exported from the Docker client library to detect HTTP 404 errors returned by the Docker API more reliably.

This improves compatibility with Podman's implementation of the Docker API, because Podman uses a different capitalization for the error message that is returned when a container has already been deleted, causing the existing code to fail to recognize this condition.

Use the `IsErrNotFound` function exported from the Docker client library
to detect HTTP 404 errors returned by the Docker API more reliably.

This improves compatibility with Podman's implementation of the Docker
API, because Podman uses a different capitalization for the error
message that is returned when a container has already been deleted,
causing the existing code to fail to recognize this condition.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant