HTTPClient baseUrl is hardcoded to localhost
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 70/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Quiet
- Tech stack
- docker, typescript
Research direction
Start in lib/http.ts around line 94 and trace how DockerClient.fromDockerHost passes the configured endpoint to HTTPClient. Reproduce with a remote Docker host, then verify that containerList() and imageList() use that endpoint rather than localhost:2375.
Written by the indexing model from the issue text.
Description
Hi, I have an exposed docker engine running on a remote local server (tcp://remoteip:2375) and then initialize the client with await DockerClient.fromDockerHost('tcp://remoteip:2735') which connects properly. But when I call any methods like .containerList() or .imageList() uses the HTTPClient class with the hardcoded default baseUrl http://localhost:2375instead of the inherited value from agent prameter (https://github.com/docker/node-sdk/blob/main/lib/http.ts#L94)
- Dominant language
- TypeScript
- Stars
- 107
- Forks
- 12
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from docker/node-sdk
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
-
Difficulty 3/5 1-2 days Newbie friendliness 70/100
-
Podman compatibility Open
Difficulty 4/5 3-5 days Newbie friendliness 35/100
-
Difficulty 4/5 3-5 days Newbie friendliness 48/100
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
safetrustcr/dApp-SafeTrust#426 ·
-
area:workflow bug ready-for-agent
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
fil-donadoni/tolaria#4409 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
Fission-AI/OpenSpec#1960 ·
-
Add dependabot Open
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
corsairdev/corsair#1764 ·