Handle network aliases without a custom network gracefully by aidando73 · Pull Request #1942 · docker-java/docker-java
Repository navigation
Handle network aliases without a custom network gracefully - #1942
Merged
eddumelendez merged 2 commits into docker-java:master from aidando73:feature/issue-with-network-aliases Sep 13, 2022
Merged
Handle network aliases without a custom network gracefully #1942 eddumelendez merged 2 commits into docker-java:master from aidando73:feature/issue-with-network-aliases
Conversation
aidando73 commented Sep 10, 2022
Copy link Copy Markdown
Contributor
Fixes #1940
Handle network aliases without a custom network gracefully
6caf943
aidando73
commented
Sep 10, 2022
View reviewed changes
Comment thread docker-java-core/src/main/java/com/github/dockerjava/core/command/CreateContainerCmdImpl.java
| if (containerNetwork != null) { | ||
| if (containerNetwork != null && hostConfig.getNetworkMode() != null ) { | ||
| networkingConfig = new NetworkingConfig() | ||
| .withEndpointsConfig(singletonMap(hostConfig.getNetworkMode(), containerNetwork)); |
View reviewed changes
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 .
LGTM, just waiting for @bsideup review
bsideup reviewed Sep 13, 2022View reviewed changes
bsideup approved these changes Sep 13, 2022
View reviewed changes
bsideup 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 .
Approved with a nit 👍
Remove unrelated part of test
a656358
aidando73 commented Sep 13, 2022
Copy link Copy Markdown
Contributor
Author
|
Thank you @eddumelendez and @bsideup for the review. I've addressed your suggestions. |
a961200
into
docker-java : master
Sep 13, 2022
eddumelendez commented Sep 13, 2022
Copy link Copy Markdown
Member
|
Thanks for your contribution @REslim30 ! |