testcontainers / testcontainers/testcontainers-python

Bug: tc.host support issue - failing to connect to dockerd if tc.host is present

オープン
#494 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

主要言語
Python
スター
2.3k
フォーク
386
平均マージ
4時間 40分
マージ済み PR(30日)
1

説明

Describe the bug

when we added #388 it reads stale data (or even in an older format?) and fails to connect to docker, preferring to connect to a tc desktop that may not be running anymore.

this library should validate the format before consuming the value, and potentially also check for a healthy server running on that port.

To Reproduce

Add/comment/uncomment the below line in ~/.testcontainers.properties

tc.host=tcp\://127.0.0.1\:42319

Runtime environment

n/a

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

調査の方向性

まず、ライブラリが dockerd に接続する前に ~/.testcontainers.properties と #388 で導入された tc.host の値がどのように読み取られるかを追跡します。tc.host=tcp\://127.0.0.1\:42319 で失敗を再現し、その後、既存の接続チェックとテストがあれば確認します。古い値や不正な形式の値によって、ライブラリが利用できない Docker エンドポイントを優先しなくなれば完了です。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
docker, python
領域
devops, testing-qa
issue の種類
バグ
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
35/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。