Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

[Bug]: dockerConfigFile property file not used

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

メンテナーはふだん 1 日以内に返信

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

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
45/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
docker, docker-compose, java

調査の方向性

core/src/main/java/org/testcontainers/utility/RegistryAuthLocator.java から始め、参照先のページにある Docker Compose のドキュメントと設定処理を比較します。dockerConfigFile が使用されない理由を特定し、その後、Java システムプロパティによる設定を含む、ドキュメントに記載された設定オプションが Docker 認証で一貫して機能することを確認します。

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

説明

type/bug
Module

Core

Testcontainers version

1.19.8

Using the latest Testcontainers version?

Yes

Host OS

Windows

Host Arch

x86

Docker version
podman
What happened?

When trying to configure authentication, it seems that the documentation is misleading:

It says:

Use DOCKER_CONFIG_FILE environment variable.
export DOCKER_CONFIG_FILE=/some/location/config.json
Use dockerConfigFile java property
java -DdockerConfigFile=/some/location/config.json

here: https://java.testcontainers.org/modules/docker_compose/#using-private-repositories-in-docker-compose

But: dockerConfigFile is not used.
and it looks like you should not use DOCKER_CONFIG_FILE, but DOCKER_AUTH_CONFIG instead.

Not having the ability to use a system property is annoyng, since it makes it diffucult to configure docker authentication with java code directly.

That's what I infer from: https://github.com/testcontainers/testcontainers-java/blob/main/core/src/main/java/org/testcontainers/utility/RegistryAuthLocator.java and from my tests.

Relevant log output

Additional Information

No response

主要言語
Java
スター
8.7k
フォーク
1.9k
平均マージ
17時間 38分
マージ済み PR(30日)
3

環境構築

Codespaces で開く

このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。

はじめの一歩

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

testcontainers/testcontainers-java のほかの issue

testcontainers/testcontainers-java の issue をすべて見る

似ている issue

Java の issue をもっと見る

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

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