each docker container have a separate networking so localhost inside one container is separate to the network in the other container
is like having 2 physical machines, and you want to access a remote service. could you explain a bit why you require localhost for a remote service ? On Fri, Dec 2, 2016 at 1:38 AM, Eddy Hernandez <[email protected]> wrote: > Hi everyone > Maybe you can help me to get this questions > > > I'm using docker as a provider, I have two containers: *container1* and > *service1* I need to reach the *service1:4505* from the *container1*, > the docs says that is posible using link e.g. *"service1:service1*" but I > would like to reach the service using *localhost*, It's possible? > > The main idea is something like this:* link "service1:localhost"* but > this is not possible > > https://www.vagrantup.com/docs/docker/configuration.html > > -- > This mailing list is governed under the HashiCorp Community Guidelines - > https://www.hashicorp.com/community-guidelines.html. Behavior in > violation of those guidelines may result in your removal from this mailing > list. > > GitHub Issues: https://github.com/mitchellh/vagrant/issues > IRC: #vagrant on Freenode > --- > You received this message because you are subscribed to the Google Groups > "Vagrant" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit https://groups.google.com/d/ > msgid/vagrant-up/397beadb-8577-4bbb-81f5-b858e2363b79%40googlegroups.com > <https://groups.google.com/d/msgid/vagrant-up/397beadb-8577-4bbb-81f5-b858e2363b79%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- Alvaro -- This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list. GitHub Issues: https://github.com/mitchellh/vagrant/issues IRC: #vagrant on Freenode --- You received this message because you are subscribed to the Google Groups "Vagrant" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/vagrant-up/CAHqq0exugA9hg9FMhYUJN%2BD%2B5ATbOBU%2BBXTND7u%3DgfXHMSpJYA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
