Comments (8)
I did find a fix, if you have the time, I'd appreciate if you can check if it works for you.. #390
Related to this hyperium/hyper#2312
from bollard.
Thanks for the report... I see there's a v1.2.0
version of Hyper out and version v0.1.3
of hyper-util, let's see if we can reproduce this on those versions.
from bollard.
I actually can't reproduce this problem. Can you give more detail on your system, and maybe any dockerd logs you find ? you can turn on debug logging in the daemon using the following configuration in /etc/docker/daemon.json
:
{
"debug": true,
"raw-logs": true
}
from bollard.
That's very strange. I'm able to replicate this on two different machines running different docker versions.
from bollard.
I think the issue here is caused by the statically stored Docker
instance static DOCKER: OnceCell<Docker>
.
When running tokio
tests with multi_thread
, tokio will actually run the tests concurrently, but spawn a unique runtime for each one of them.
As of [email protected]
, somehow, the Docker
instance "absorbs" the first tokio runtime it sees, and if that runtime is dropped while someone else is making a request, you get the error "runtime dropped the dispatch task"
.
from bollard.
Ah yes, I see it now if you run them all together..
from bollard.
I put this test scenario into bollard's CI system, and it seems to fail on all connectors (http / ssl / named pipe / unix socket), so that excludes any issue with any individual connector. I also checked locally running against the latest master branch of hyper and it still fails (albeit less often).
from bollard.
I just got around to test your fix. I can confirm it works!
Thank you so much for your support on this ❤️
from bollard.
Related Issues (20)
- Stream doesn't close after exec log
- Problems Connecting w/ HTTP HOT 1
- How to import images from tar using stream HOT 3
- docker manifest inspect
- Add Docker Socket availability check during connection creation HOT 3
- Support for multiple image build tags? HOT 1
- code is inactive due to #[cfg] directives: feature = "buildkit" is disabled HOT 4
- How to specify multi-stage build target in build_image? HOT 1
- Looking for help: Created container seem to be not listen to export and published port HOT 1
- Add a `Docker::connect_with_url()` method HOT 4
- Generic strategy for health checking a container? HOT 1
- Unclear error when docker is not running HOT 2
- UpdateContainerOptions has i_ops and cp_us instead of iops and cpus HOT 2
- Is it possible to use list_containers without type params? HOT 2
- Custom Build Outputs `--output` HOT 10
- Cutting out a new minor release HOT 1
- Unable to anonymously pull an image from ghcr.io when using BuildKit HOT 7
- Feature request: allow HTTP request customizations
- Both ring and aws-lc-rs provider are enabled HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bollard.