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