![]() For example, you can check this port forwarding by docker port command or just listing the containers:ĬONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMESĬfc178841a79 ubuntu "/bin/bash" 3 weeks ago Up 4 hours ubuntuĠ200f61f5d65 nginx "nginx -g 'daemon of…" 2 months ago Up 3 minutes 0.0.0.0:5000->80/tcp webserver Some containers as Nginx provide a service through a local port, in which case you could use port forwarding by your local IP. 3.1 Accessing container's service by port mapping When you use the command docker network inspect bridge, you could see the list of containers and their IPs assigned. The contianers should be able to access each other in the local network provided by this net gateway. "Containers": ,īy default, the container is connected within a local network(172.17.0.1/16) bridged to the host machine, host can access the net gateway ip 172.17.0.1. 08a134ed472c none null local # Check docker's network detail
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |