Figured it out... Symantec Enpoint Protection was blocking the port forwarded from Docker > Vagrant Box > Host. Disabled SEP, and I'm now able to get to the Tomcat welcome page from the host machine.
On Wednesday, January 7, 2015 at 4:15:10 PM UTC-5, srcLakeJake wrote: > > I have the following Vagrantfile I am using to set up a Ubuntu box running > Tomcat... within the vagrant box, I can hit the Tomcat welcome page by > doing "curl http://172.11.0.10:8080" (I get the page HTML). When trying > to execute "curl http://172.11.0.10:8080" from Git Bash outside of the > vagrant box, I get "curl (7) Failed to connect to http://172.11.0.10:8080"... > and I can't hit that URL from a browser on my host. > > Can anyone tell me what corrections are needed to access > http://172.11.0.10:8080 outside of the vagrant box? > > Thanks in advance - > Jake > > > # Vagrantfile > # -------------------------------- > > # -*- mode: ruby -*- > # vi: set ft=ruby : > > # Vagrantfile API/syntax version. Don't touch unless you know what you're > doing! > VAGRANTFILE_API_VERSION = "2" > > Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| > # All Vagrant configuration is done here. The most common configuration > # options are documented and commented below. For a complete reference, > # please see the online documentation at vagrantup.com. > > # Every Vagrant virtual environment requires a box to build off of. > config.vm.box = "ubuntu/trusty64" > > # specify IP so we know which address to request > config.vm.network "private_network", ip: "172.11.0.10" > > config.vm.provision "docker" do |d| > d.run "tomcat", > args: "--name 'tomcat' -p 8080:8080" > end > > end > -- 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]. For more options, visit https://groups.google.com/d/optout.
