Skip to content

Conversation

@jrfk
Copy link
Collaborator

@jrfk jrfk commented May 20, 2024

What do these changes do?

Add support for Docker context endpoints.

  • Read files such as ~/.docker/context/meta.json and set the socket
    • DOCKER_CONTEXT will be prioritized if it is set.

Are there changes in behavior for the user?

No impacts to existing users.

Related issue number

resolves #811

Checklist

  • I think the code is well written
  • Unit tests for the changes exist
  • Documentation reflects the changes
  • If you provide code modification, please add yourself to CONTRIBUTORS.txt
    • The format is <Name> <Surname>.
    • Please keep alphabetical order, the file is sorted by names.
  • Add a new news fragment into the changes folder
    • name it <issue_id>.<type> for example (588.bug)
    • if you don't have an issue_id change it to the pr id after creating the pr
    • ensure type is one of the following:
      • .feature: Signifying a new feature.
      • .bugfix: Signifying a bug fix.
      • .doc: Signifying a documentation improvement.
      • .removal: Signifying a deprecation or removal of public API.
      • .misc: A ticket has been closed, but it is not of interest to users.
    • Make sure to use full sentences with correct case and punctuation, for example: "Fix issue with non-ascii contents in doctest text files."

@codecov
Copy link

codecov bot commented May 21, 2024

Codecov Report

❌ Patch coverage is 40.00000% with 18 lines in your changes missing coverage. Please review.
✅ Project coverage is 81.28%. Comparing base (b046908) to head (f237580).

Files with missing lines Patch % Lines
aiodocker/docker.py 40.00% 13 Missing and 5 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #854      +/-   ##
==========================================
- Coverage   81.54%   81.28%   -0.27%     
==========================================
  Files          24       24              
  Lines        1447     1464      +17     
  Branches      194      198       +4     
==========================================
+ Hits         1180     1190      +10     
- Misses        189      194       +5     
- Partials       78       80       +2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link
Member

@achimnol achimnol left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could we add some test cases by providing mocked docker client configurations?

@achimnol
Copy link
Member

achimnol commented Dec 8, 2025

Since there is no response from the original author, I'll redo the work as a preparation for #982.

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

FR: Support for docker contexts (configured in ~/.docker/)

2 participants