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