a818254bf8c70afa0688ecab0dfb97352de24d11
Scope in network ls/inspect with duplicate network names
This fix tries to address the issue raised in 30242 where the `Scope` field always changed to `swarm` in the ouput of `docker network ls/inspect` when duplicate networks name exist. The reason for the issue was that `buildNetworkResource()` use network name (which may not be unique) to check for the scope. This fix fixes the issue by always use network ID in `buildNetworkResource()`. A test has been added. The test fails before the fix and passes after the fix. This fix fixes 30242. Signed-off-by: Yong Tang <yong.tang.github@outlook.com> Upstream-commit: 05a831a775be5e8d752deaef620e629deb15cb89 Component: engine
Description
No description provided
Languages
Go
92%
Shell
5.5%
Dockerfile
1.1%
Go-Checksums
0.9%
Makefile
0.3%
Other
0.2%