Open kinghuang opened 5 years ago
GitMate.io thinks possibly related issues are https://github.com/aio-libs/aiodocker/issues/172 (auth with registry doesn't work), https://github.com/aio-libs/aiodocker/issues/211 (New aiodocker release request), and https://github.com/aio-libs/aiodocker/issues/101 (Build from remote host doesn't work on Docker 17.03 / API 1.27).
Long story short
The aiodocker.swarm.join() function forms a dict as the data parameter for a call to
swarm/join
, but then calls the _query() function instead of the _query_json() function. The data doesn't get converted to JSON, resulting in an error from the target Docker engine.How to reproduce
Your environment
Using aiodocker==0.14.0