-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add ip address to advanced options #1803
Add ip address to advanced options #1803
Conversation
This comment has been minimized.
This comment has been minimized.
8b591a7
to
7c59932
Compare
Codecov Report
@@ Coverage Diff @@
## master #1803 +/- ##
==========================================
+ Coverage 56.28% 56.42% +0.13%
==========================================
Files 308 308
Lines 21299 21370 +71
==========================================
+ Hits 11988 12057 +69
+ Misses 8436 8434 -2
- Partials 875 879 +4 |
Codecov Report
@@ Coverage Diff @@
## master #1803 +/- ##
==========================================
+ Coverage 56.32% 56.34% +0.02%
==========================================
Files 308 308
Lines 21387 21397 +10
==========================================
+ Hits 12047 12057 +10
Misses 8461 8461
Partials 879 879 |
This allows setting the ip/ipv6 address as an option in the advanced `--network` syntax; ``` docker run --network name=mynetwork,ip=172.20.88.22,ip6=2001:db8::8822 ``` Signed-off-by: Sebastiaan van Stijn <[email protected]>
7c59932
to
70d8e0b
Compare
rebased @silvin-lubecki @vdemeester this should be ready for review as well 🤗 |
networkOptName = "name" | ||
networkOptAlias = "alias" | ||
networkOptIPv4Address = "ip" | ||
networkOptIPv6Address = "ip6" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let me know if this naming LGTY; I see the compose-file uses https://docs.docker.com/compose/compose-file/#ipv4_address-ipv6_address
ipv4_address: 172.16.238.10
ipv6_address: 2001:3984:3989::10
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
naming LGTM 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
We need a follow-up to update the docs and examples. |
follow-up to #1767
partially implements: moby/moby#31964 (RFC: add advanced "csv" syntax for "--net" / "--network")
this allows setting the ip/ipv6 address as a network-option;