Niel Drummond

Results 81 comments of Niel Drummond

Thanks for giving it a shot.. I thought maybe something simpler like having a function with a callback might work, but in my naive attempt it was having issues with...

Thanks, that's interesting.. I had a quick look but didn't find a whole lot of documentation or prior art on how this could be done. Going to keep looking..

I was briefly looking into this, and I think it's worth putting some work into changing how errors are handled in Bollard - but aside from the status code that's...

Hmm.. It looks like there are two Docker instructions happening (the read looks like a [`BuildInfo` type](https://github.com/fussybeaver/bollard/blob/a1d0050ff3cc6393b3f506b15ef2b04fb37d2c8e/codegen/target/generated-sources/src/models.rs#L208-L242), which is returned from a `build_image` request) - are you sure that it's...

The `create_image` endpoint deserializes the docker payload into a stream of `CreateImageInfo`. If you wanted to recreate a new `HyperResponse`, you would need to serialize each instance back into bytes...

As it says in the docs, you'll need to use a combination of `cpu_period` and `cpu_quota`. I haven't tested it, but maybe something like: ``` let docker = Docker::connect_with_socket_defaults().unwrap(); const...

It's not implemented at the moment, but looks relatively straightforward to add.

:thinking: Initially, I thought this was about adding an API endpoint that was missing, but looking at the CLI code, https://github.com/thaJeztah/cli/blob/master/cli/command/stack/swarm/deploy_composefile.go#L179-L267 it looks like they're just parsing the docker-compose file...

Tokio 0.2 is not compatible with the latest 1.x release - an older version of `bollard` will work (pre 0.9.1), or perhaps one of the other rust docker crates.

I was just checking this now (sorry for the delay!).. we derive `Default` on the `CreateExecOptions` and `ListContainerOptions`, but I don't see how that applies to the type parameter `T`....