0

How does port forwarding work with docker-machine?

I recently installed the docker toolkit and spun up a container. However I cannot reach it on my local mac as.

Is this Port forwarding in docker-machine? using VBoxManage the best way to access the running docker container using my OSX browser?

Community
  • 1
  • 1
Georg Heiler
  • 16,916
  • 36
  • 162
  • 292

2 Answers2

1

To add port forwards from the command line to a running boot2docker VM use the following command:

VBoxManage controlvm boot2docker-vm natpf1 "default,tcp,127.0.0.1,1234,,1234"
Noam Hacker
  • 4,671
  • 7
  • 34
  • 55
Fabián Bertetto
  • 1,721
  • 17
  • 14
0

After restarting kitematic & the docker-host default VM. The container appeared in kitematic and the bound URL.

Georg Heiler
  • 16,916
  • 36
  • 162
  • 292