Include container names in network inspect#17615
Conversation
|
+1 to the container name here. |
|
And the final look of |
|
The one thing to think about is how aliasing will be handled on networks, and how it might be displayed in the inspect output in addition to the name. ping @mavenugo |
|
Nice! Thanks for picking this up. If this is agreed upon, do we need an integration test to check if it follows container rename? (Having a test may also prevent regressions) |
|
@thaJeztah @cpuguy83 |
fd9d451 to
97094ad
Compare
|
Test cases are updated. 😄 |
|
Yes, please! |
Awesome! @albers yes, I can definitely see that will make it easier. Unfortunately, this won't make it into 1.9.0 (too late for that) |
|
ping @tiborvass do you think this can be considered for 1.9.1? I don't think this breaks backward compatibility, but it is a change in the API, so not sure we want to introduce that in a x.x.1 update |
97094ad to
35c3b68
Compare
|
Refresh and rebased. 😄 |
|
ping @mrjana @aboch could you give this a quick look? (thanks for rebasing @WeiZhang555 !) |
This commit makes `docker network inspect` print container names as service discovery is based on container name. Signed-off-by: Zhang Wei <zhangwei555@huawei.com>
35c3b68 to
fbed262
Compare
|
LGTM |
Include container names in `network inspect`
|
Looks like this went through without docs review. I think this needs a mention in the API changelog; https://github.com/docker/docker/blob/master/docs/reference/api/docker_remote_api.md#v122-api-changes. Also the response example in https://github.com/docker/docker/blob/master/docs/reference/api/docker_remote_api_v1.22.md#inspect-network and https://github.com/docker/docker/blob/master/docs/reference/commandline/network_inspect.md @WeiZhang555 can you make those changes in a follow-up PR? |
|
@thaJeztah |
|
Thanks!
|
|
@WeiZhang555 Thanks for the feature, I just used it in #17997. |
|
@albers I'm happy to hear that the feature is useful and meaningful, and glad to help! :) |
Fixes #17404
This commit makes
docker network inspectprint container names asservice discovery is based on container name.
Signed-off-by: Zhang Wei zhangwei555@huawei.com
Test cases are still on working. :)