Closed fmckeogh closed 9 months ago
Thanks for this, I don't think we have this use case covered in our tests.. I've only recently read that this is possible.
@fussybeaver Any recommendations on how I could debug/fix this?:)
I would setup an env_logger
at the start of your script and run with RUST_LOG=bollard=debug
to check what the request envelope looks like. You can try and compare it with a simple curl request on the docker socket to check if that's working.
@fussybeaver Diffing the logs showed the only change was the extra &changes=
parameter in the request. I think the Docker error is suggesting that if the Vec
is empty the parameter shouldn't be passed? I can open a PR if that fix is acceptable to you.
The following function for creating a WASM image in the local registry works in
bollard 0.14.0
but fails withDockerResponseServerError { status_code: 400, message: "file with no instructions" }
inbollard 0.15.0
.I have bisected the commits, and it appears that it was merge request https://github.com/fussybeaver/bollard/pull/335 that caused the issue, but I can't find out how sending an empty
changes
field causes the error.