GithubHelp home page GithubHelp logo

Comments (4)

fussybeaver avatar fussybeaver commented on July 30, 2024

We recently added a connect_with_defaults method which sources that DOCKER_HOST environment variable

pub fn connect_with_defaults() -> Result<Docker, Error> {
. I'd be happy for a PR that extends or refactors this method to accept a connect_with_url invocation

from bollard.

eddumelendez avatar eddumelendez commented on July 30, 2024

Hi, jumping here because I'm also interested in this issue. It would be nice to allow setting headers as well to set custom User-Agent from clients consuming the library. It would be even much better to accept a http request to make the client fully configurable.

from bollard.

bpmooch avatar bpmooch commented on July 30, 2024

@eddumelendez do you still care?

from bollard.

DDtKey avatar DDtKey commented on July 30, 2024

Hi @bpmooch 👋

I'll put some context: we use bollard client in Testcontainers for Rust . And recently we completely switched to the bollard client, there is no issues with it and we don't depend on this issue. It was customized and current interface is sufficient for this.

But the ability to customize the request still looks interesting, at least we would like to add the header (User-Agent).
However, IMO, this is question for a separate issue.

UPD: extracted into separate issue #436

from bollard.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.