its... complicated. depending on things docker might or might not be proxying the traffic. see for example https://github.com/moby/moby/issues/14856 for discussion
Seems like introducing unnecessary overhead to me, but I'm also sure there's a reason it exists, so...