agentscope-ai / agentscope-ai/agentscope-runtime-java

[Bug] DockerClient createContainer defaults IP to localhost, causing startup failure when connecting to remote daemon

オープン
#104 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
Java
スター
184
フォーク
38
PR マージ指標
30日以内にマージされた PR はありません

説明

When using DockerClient to connect to a remote Docker daemon, the createContainer operation appears to default the container's network IP or binding address to localhost (127.0.0.1). Consequently, when startContainer is invoked, it fails because localhost on the client machine does not resolve to the correct network interface of the remote Docker host.

This behavior makes it impossible to start containers on remote daemons without manual network configuration overrides.

Steps to Reproduce

1. Configure DockerClient to point to a remote Docker daemon (e.g., via TCP socket tcp://remote-host:2375).
2. Call createContainer with default network settings.
3. Observe that the created container's configuration reflects localhost for certain network bindings/IPs.
4. Call startContainer.
5. Result: The operation fails with a connection or binding error, as the client attempts to interact with localhost instead of the remote host's IP.

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

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

評価

この issue はまだ評価されていません。

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

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