Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

HTTPClient baseUrl is hardcoded to localhost

Open Beginner friendly
#61 3 comments 1 reaction 0 assignees View on GitHub

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
Domain
api, backend

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from docker/node-sdk

All issues in docker/node-sdk

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.