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
5 months agoMa
5 months agoCarmela
6 months agoAdell
6 months agoClaudio
6 months agoJacquelyne
6 months agoMichal
7 months agoValentin
7 months agoAmie
7 months agoMitsue
7 months agoRaymon
7 months agoStaci
8 months agoRodolfo
8 months agoMilly
10 months agoParis
10 months agoVicente
10 months agoPansy
10 months agoBeckie
9 months agoTwanna
9 months agoRaylene
10 months agoPete
10 months agoBea
10 months agoMilly
9 months agoPauline
9 months agoLorriane
11 months agoElke
10 months agoTamesha
10 months agoNikita
10 months ago