bollard
bollard copied to clipboard
Docker daemon API in Rust
Hi is it possible to connect to a remote socket over ssh? for context here is how to do it on the docker cli, `docker -H ssh://user@hostname ps` Is there...
Here we see a `decode_json_from_slice` method, where an error handling of the response is happening: https://github.com/fussybeaver/bollard/blob/e1046a48499eb2068790b2679b2e068ea03f1920/src/read.rs#L107-L124 As I see, I'm getting a stream of `Result` when call a `create_image` function,...
In some cases, like when using `podman` `ContainerConfig.entrypoint` is a string, in those cases deserializer freaks out with ``` panicked at 'called `Result::unwrap()` on an `Err` value: Error("invalid type: string...
Hi, Sorry for the probably easy question :-) I would like to deploy a number of containers that are related to each other. I assume the best way of doing...
The bollard API only seems to have one general timeout for all of the client actions (2 minutes by default, or user provided when using `connect_with_unix` directly). As always, timeouts...
I receive this error while attempting to build https://github.com/matrix-org/synapse/ (the Dockerfile is in `docker/Dockerfile`). I haven't found a way to work around this with Bollard yet. I don't know if...
This has appeared in my stress test of `create/remove_image` methods (https://github.com/fussybeaver/bollard/issues/190#issuecomment-1038940591). ```bash [2022-02-14T06:50:11Z DEBUG bollard::read] Decoding JSON line from stream: {"errorDetail":{"message":"error pulling image configuration: Get \"https://production.cloudflare.docker.com/registry-v2/docker/registry/v2/blobs/sha256/39/39d290d0ed044e20481d8a02dfb84509e48426e99a7175d1412299db837818eb/data?verify=1644824401-2%2BNoBGk55KVtN7yebBVVT%2B%2Fmd1A%3D\": dial tcp: lookup production.cloudflare.docker.com:...
I write like this: ```rust let mut stream = docker_client.create_image(Some(CreateImageOptions{ from_image: "hello-world", ..Default::default() }), None, None); HyperResponse::new(HyperBody::wrap_stream(stream)) ``` error: ``` the trait `From` is not implemented for `hyper::body::Bytes` | =...
how can i use ‘--cpus’ directly https://docs.docker.com/config/containers/resource_constraints/#cpu
I would like to use https://docs.docker.com/engine/reference/commandline/stack_deploy/ but I don't see in https://docs.docker.com/engine/api/v1.41/