-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Network creation error on clean install #4
Comments
Test code
Error
Looks like a dockerode problem: https://github.com/apocas/dockerode/blob/master/lib/network.js#L18 callback function is set to 1 so its not returning a promise as its checking for undefined @yousefamar can you confirm? |
I get the same error. Turns out |
You'll never believe the reason for this bug... To recreate, I did:
I was baffled for a bit, but narrowed it down to So I dug into NodeJS source code, following the stack trace, and found this: https://github.com/nodejs/node/blob/master/lib/util.js#L350. Node calls Some more digging, and it turns out, putting an ConclusionThe network does actually get created; it's just logging a The bug is in Dockerode — I guess they didn't realise that P.S. As a bonus, there's a "bug" with the Docker Remote API: it doesn't stop you from creating duplicate networks, only warning you, while Docker CLI does and throws an error. |
@yousefamar Amazing work 🥇 I could not see where/why inspect() was being called. It also explains why when debugging the infamous #50 and #54 pr's adding console.logs was causing inconsistent behaviour. |
Turtles all the way down... :) |
Ty all! Dockerode has a accepted my PR upstream so this issue should be resolved. |
Linking and dependencies
Move KTG's branch to the main repo
When starting Databox from clean state some of the networks fail to create.
The text was updated successfully, but these errors were encountered: