Ubuntu [SOLVED]: connect docker from outside host running virtualbox

Ubuntu [SOLVED]: connect docker from outside host running virtualbox

Home Forums Ubuntu Ubuntu [SOLVED]: connect docker from outside host running virtualbox

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #36832

    Anonymous

    QuestionQuestion

    My host machine (main) is Windows 10
    Installed virtual box running Ubuntu
    After starting VM, I installed docker for ubuntu
    Pull images (odoo and postgres) and successfully launch Odoo application via localhost:8069
    I switch back to my main machine which is Windows 10.

    How can I connect my odoo application from my Windows 10?
    Also, how can my colleague access my odoo application on the same network?

    Hope you can help me, Thanks 🙂

    #36833

    Anonymous

    Accepted AnswerAnswer

    To be able to connect from your windows machine, you can enable port forwarding, by selecting the VM and going to Settings > Network > Advanced > Port forwarding and adding an entry with Host port 8069 and Guest Port 8069.
    Now from windows you can connect to localhost:8069. In this case, other peers can connect to your machine to access the application <machine-dns-name>:8069 <machine-ip>:8069

    Alternatively, you can find the IP address of the Ubuntu VM by running ifconfig and using that ip to connect from windows via <ubuntu-vm-ip>:8069

    Source: https://stackoverflow.com/questions/47976463/connect-docker-from-outside-host-running-virtualbox
    Author: yamenk
    Creative Commons License
    This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.