You want to create a container that is reachable from its host's network. Does this action accomplish this?
Solution: Use --link to access the container on the bridge network.
= The action of using--linkto access the container on the bridge network doesnotaccomplish the goal of creating a container that is reachable from its host's network.The--linkoption allows you to connect containers that are running on the same network, but it doesnotexpose the container's ports to the host1.To create a container that is reachable from its host's network, you need to use the--network hostoption, which attaches the container to the host's network stack and makes it share the host's IP address2.Alternatively, you can use the--publishor-poption to map the container's ports to the host's ports3.
: :Legacy container links | Docker Documentation:Networking using the host network | Docker Documentation:docker run reference | Docker Documentation
Arminda
4 months agoMa
4 months agoCarmela
4 months agoAdell
4 months agoClaudio
5 months agoJacquelyne
5 months agoMichal
5 months agoValentin
5 months agoAmie
5 months agoMitsue
6 months agoRaymon
6 months agoStaci
6 months agoRodolfo
6 months agoMilly
8 months agoParis
8 months agoVicente
9 months agoPansy
9 months agoBeckie
8 months agoTwanna
8 months agoRaylene
9 months agoPete
9 months agoBea
9 months agoMilly
8 months agoPauline
8 months agoLorriane
9 months agoElke
8 months agoTamesha
9 months agoNikita
9 months ago