You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@mesos.apache.org by Jie Yu <yu...@gmail.com> on 2018/01/04 20:42:14 UTC
Re: Review Request 63860: Windows: Mapped the Docker network info
types.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/63860/#review194784
-----------------------------------------------------------
I like the direction in the latest diff (platform specific defaults).
One question is: what's the difference between nat and bridge? are they the same? If yes, can we not have NAT in the API? In other words, BRIDGE on Windows will map to "nat".
- Jie Yu
On Dec. 7, 2017, 9:34 p.m., Akash Gupta wrote:
>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/63860/
> -----------------------------------------------------------
>
> (Updated Dec. 7, 2017, 9:34 p.m.)
>
>
> Review request for mesos, Andrew Schwartzmeyer, Jie Yu, John Kordich, Joseph Wu, and Michael Park.
>
>
> Bugs: MESOS-7342
> https://issues.apache.org/jira/browse/MESOS-7342
>
>
> Repository: mesos
>
>
> Description
> -------
>
> The current Network enum in DockerInfo is specific to Linux containers.
> Instead of supporting {host, bridge, none, user} networks, Windows
> docker supports {nat, none, user} networks. Now, the Network enum
> supports {host, bridge, nat, none, user}. If the network isn't
> specified, then the default is host on Linux and nat on Windows.
>
>
> Diffs
> -----
>
> include/mesos/mesos.proto 839ddb1cb41471d36423a2fc149acf90b973d413
> src/docker/docker.cpp 722a54ad113fc4e2bb22a8f08e307ab38d5fbfed
>
>
> Diff: https://reviews.apache.org/r/63860/diff/4/
>
>
> Testing
> -------
>
> See https://reviews.apache.org/r/63862/ for test results.
>
>
> Thanks,
>
> Akash Gupta
>
>
Re: Review Request 63860: Windows: Mapped the Docker network info
types.
Posted by Akash Gupta <ak...@hotmail.com>.
> On Jan. 4, 2018, 8:42 p.m., Jie Yu wrote:
> > I like the direction in the latest diff (platform specific defaults).
> >
> > One question is: what's the difference between nat and bridge? are they the same? If yes, can we not have NAT in the API? In other words, BRIDGE on Windows will map to "nat".
I don't remember if they are 100% the same, but they are very similar. We can map BRIDGE to "nat" on Windows with a note in the doc that says that BRIDGE="nat" on Windows.
- Akash
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/63860/#review194784
-----------------------------------------------------------
On Jan. 4, 2018, 9:40 p.m., Akash Gupta wrote:
>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/63860/
> -----------------------------------------------------------
>
> (Updated Jan. 4, 2018, 9:40 p.m.)
>
>
> Review request for mesos, Alexander Rukletsov, Andrew Schwartzmeyer, Gaston Kleiman, Jie Yu, John Kordich, Joseph Wu, and Michael Park.
>
>
> Bugs: MESOS-7342
> https://issues.apache.org/jira/browse/MESOS-7342
>
>
> Repository: mesos
>
>
> Description
> -------
>
> The current Network enum in DockerInfo is specific to Linux containers.
> Instead of supporting {host, bridge, none, user} networks, Windows
> docker supports {nat, none, user} networks. Now, the Network enum
> supports {host, bridge, nat, none, user}. If the network isn't
> specified, then the default is host on Linux and nat on Windows.
>
>
> Diffs
> -----
>
> include/mesos/mesos.proto 839ddb1cb41471d36423a2fc149acf90b973d413
> src/docker/docker.cpp 722a54ad113fc4e2bb22a8f08e307ab38d5fbfed
>
>
> Diff: https://reviews.apache.org/r/63860/diff/4/
>
>
> Testing
> -------
>
> See https://reviews.apache.org/r/63862/ for test results.
>
>
> Thanks,
>
> Akash Gupta
>
>
Re: Review Request 63860: Windows: Mapped the Docker network info
types.
Posted by Jie Yu <yu...@gmail.com>.
> On Jan. 4, 2018, 8:42 p.m., Jie Yu wrote:
> > I like the direction in the latest diff (platform specific defaults).
> >
> > One question is: what's the difference between nat and bridge? are they the same? If yes, can we not have NAT in the API? In other words, BRIDGE on Windows will map to "nat".
>
> Akash Gupta wrote:
> I don't remember if they are 100% the same, but they are very similar. We can map BRIDGE to "nat" on Windows with a note in the doc that says that BRIDGE="nat" on Windows.
Yes, please do that.
- Jie
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/63860/#review194784
-----------------------------------------------------------
On Jan. 5, 2018, 12:29 a.m., Akash Gupta wrote:
>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/63860/
> -----------------------------------------------------------
>
> (Updated Jan. 5, 2018, 12:29 a.m.)
>
>
> Review request for mesos, Alexander Rukletsov, Andrew Schwartzmeyer, Gaston Kleiman, Jie Yu, John Kordich, Joseph Wu, and Michael Park.
>
>
> Bugs: MESOS-7342
> https://issues.apache.org/jira/browse/MESOS-7342
>
>
> Repository: mesos
>
>
> Description
> -------
>
> The current Network enum in DockerInfo is specific to Linux containers.
> Instead of supporting {host, bridge, none, user} networks, Windows
> docker supports {nat, none, user} networks. Now, the Network enum
> supports {host, bridge, nat, none, user}. If the network isn't
> specified, then the default is host on Linux and nat on Windows.
>
>
> Diffs
> -----
>
> include/mesos/mesos.proto c677a8be07d0ef209d42622ae32056d36e55ff78
> src/docker/docker.cpp 722a54ad113fc4e2bb22a8f08e307ab38d5fbfed
>
>
> Diff: https://reviews.apache.org/r/63860/diff/5/
>
>
> Testing
> -------
>
> See https://reviews.apache.org/r/63862/ for test results.
>
>
> Thanks,
>
> Akash Gupta
>
>