KEMBAR78
Slides Networking | PDF
0% found this document useful (0 votes)
11 views3 pages

Slides Networking

The document outlines how containers communicate within a Docker network, emphasizing that all containers can interact with each other and IPs are automatically resolved. It also explains the use of 'host.docker.internal' for requests from containers to the host machine and provides a command for creating container networks. Additionally, it clarifies that Docker does not alter source code but detects and resolves outgoing requests' IPs.

Uploaded by

souhaiel.amri
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
11 views3 pages

Slides Networking

The document outlines how containers communicate within a Docker network, emphasizing that all containers can interact with each other and IPs are automatically resolved. It also explains the use of 'host.docker.internal' for requests from containers to the host machine and provides a command for creating container networks. Additionally, it clarifies that Docker does not alter source code but detects and resolves outgoing requests' IPs.

Uploaded by

souhaiel.amri
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

Containers & Network Requests

some-api.com/

Requests from container to WWW

Requires a container
network
GET /some-api.com/

SQL Database Use host.docker.internal


<Your App> as address

Requests from container to


other container
Requests from container to host machine

Your Host Machine


Creating Container Networks

docker run --network my_network …

Network

Container 1 Container 2 Container 3

Within a Docker network, all containers can communicate with


each other and IPs are automatically resolved
Understanding Docker Network IP Resolving

Docker will NOT replace your


source code.

Requires a container It simply detects outgoing


network + use container requests and resolves the IP
name as address for such requests

GET /some-api.com/

SQL Database
Use host.docker.internal
<Your App>
as address
Requests from container to
other container
Requests from container to host machine

Your Host Machine

You might also like