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

Improve docker backend detection under linux during testing #4378

Merged
merged 1 commit into from
Jan 23, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions tests/integration/test_command.py
Original file line number Diff line number Diff line change
@@ -87,8 +87,8 @@ def has_pure_docker() -> bool:
failure = "Docker is using podman's backend, run `sudo podman-mac-helper uninstall` to disable it."
else:
failure = "Docker is using podman's backend, so we will skip running docker tests as they are high likely to fail. See https://github.com/ansible-collections/community.docker/issues/660 https://github.com/containers/podman/issues/16548"
elif result.stdout != "Not Found":
failure = "Unexpected response from Docker's default socket."
elif result.stdout.rstrip() not in ("Not Found", '{"message":"page not found"}'):
failure = f"Unexpected response from Docker's default socket {result.stdout}."
else:
result = run(["docker", "context", "inspect", "--format", "{{.Endpoints.docker.Host}}"])
if result.returncode != 0: