Why docker directly communicate with internet not thorough localhost

Viewed 8

i thought that docker will communicate with internet via localhost so if i capture the packet, docker_ip -> local_ip -> internet_ip it would be like this.

but wireshark result was different

enter image description here

As you can see, docker only communicates with internet and local only communicates with internet too. how could it be?

0 Answers
Related