I created a very simple network named r, and when I called swarm network connect API, it always return 404 page not found, however when I called the docker API, it's OK.
After I turn on the debug message, I found the API /networks/{network_id}/connect have become netwo{network.ID}ks/r/connect, so it turns to be 404 page not found.
I created a very simple network named
r
, and when I called swarm network connect API, it always return404 page not found
, however when I called the docker API, it's OK.After I turn on the debug message, I found the API
/networks/{network_id}/connect
have becomenetwo{network.ID}ks/r/connect
, so it turns to be404 page not found
.I checked the related code and found this:
The docker remote network API called with network name, so I think it's OK to remove this code?