Skip to content

Add Name to ContainerNetworkConfig - #2052

Merged
eddumelendez merged 2 commits into
docker-java:masterfrom
albers:extend-container-network-config
Feb 5, 2023
Merged

Add Name to ContainerNetworkConfig#2052
eddumelendez merged 2 commits into
docker-java:masterfrom
albers:extend-container-network-config

Conversation

@albers

@albers albers commented Jan 25, 2023

Copy link
Copy Markdown
Contributor

I have a use case where this property would be very helpful:

In a Quarkus integration test, I have to find a container in a temporary network based on its name.
With the current codebase, I have to inspect each container in the network in order to find the matching container.
Having the container name available in ContainerNetworkConfig would simplify the search.

The Name property appears first in the v1.30 Docker api docs.

Signed-off-by: Harald Albers <github@albersweb.de>

@eddumelendez eddumelendez left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

First appearance was on v1.22 https://docs.docker.com/engine/api/v1.22/

Comment thread docker-java-api/src/main/java/com/github/dockerjava/api/model/Network.java Outdated
@eddumelendez eddumelendez added this to the next milestone Feb 3, 2023
Co-authored-by: Eddú Meléndez Gonzales <eddu.melendez@gmail.com>
@eddumelendez
eddumelendez merged commit db508d8 into docker-java:master Feb 5, 2023
@eddumelendez

Copy link
Copy Markdown
Member

Thanks for your contribution, @albers! This is now merged in master branch and it will be part of the next release.

@albers
albers deleted the extend-container-network-config branch February 6, 2023 11:07
@albers

albers commented Feb 6, 2023

Copy link
Copy Markdown
Contributor Author

Thank you @eddumelendez. I'm looking forward to the next release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants