FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Handle network aliases without a custom network gracefully by aidando73 · Pull Request #1942 · docker-java/docker-java · GitHub

Repository navigation

Handle network aliases without a custom network gracefully - #1942

Merged
eddumelendez merged 2 commits into
docker-java:masterfrom
aidando73:feature/issue-with-network-aliases
Sep 13, 2022
Merged

eddumelendez merged 2 commits into
docker-java:masterfrom
aidando73:feature/issue-with-network-aliases

Conversation

Copy link
Copy Markdown
Contributor

Fixes #1940

if (containerNetwork != null) {
if (containerNetwork != null && hostConfig.getNetworkMode() != null) {
networkingConfig = new NetworkingConfig()
.withEndpointsConfig(singletonMap(hostConfig.getNetworkMode(), containerNetwork));

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Exception was being thrown as we were putting:

EndpointsConfig: {
    null: containerNetwork
}

as networkMode is null by default. This can't be serialised by JSON so it throws.

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.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

LGTM, just waiting for @bsideup review

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.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Approved with a nit 👍

Copy link
Copy Markdown
Contributor Author

Thank you @eddumelendez and @bsideup for the review. I've addressed your suggestions.

bsideup added this to the next milestone Sep 13, 2022
eddumelendez merged commit a961200 into docker-java:master Sep 13, 2022

Copy link
Copy Markdown
Member

Thanks for your contribution @REslim30 !

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Null key for a Map not allowed in JSON (use a converting NullKeySerializer?) when using network aliases

3 participants


Back | FazBrowse Home | New Git URL