Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Odoo is not accessible with OSX #26

Closed
gagarine opened this issue Sep 9, 2015 · 7 comments
Closed

Odoo is not accessible with OSX #26

gagarine opened this issue Sep 9, 2015 · 7 comments

Comments

@gagarine
Copy link

gagarine commented Sep 9, 2015

I followed the instruction on https://hub.docker.com/_/odoo/ to install odoo. Everything seem to works but I'm not able to access odoo from my browser.

I'm running docker on OSX using https://www.docker.com/toolbox .

The two running container are showing up in Kitematic (but I launched them from the the terminal because the containers was using links).

I tried other container like the training/webapp and it was working fine and I was able to access to the demo page with my browser.

@bartekwojcicki
Copy link

Did you enter ip address of the virtual machine and port used by odoo in the browser?

 docker-machine ip default

@gagarine
Copy link
Author

This is what I did:

Machine default already exists in VirtualBox.
Starting machine default...
Starting VM...

Started machines may have new IP addresses. You may need to re-run the `docker-machine env` command.
Setting environment variables for machine default...

                        ##         .
                  ## ## ##        ==
               ## ## ## ## ##    ===
           /"""""""""""""""""\___/ ===
      ~~~ {~~ ~~~~ ~~~ ~~~~ ~~~ ~ /  ===- ~~~
           \______ o           __/
             \    \         __/
              \____\_______/


docker is configured to use the default machine with IP 192.168.99.100
For help getting started, check out the docs at https://docs.docker.com

bash-3.2$ docker run -d -e POSTGRES_USER=odoo -e POSTGRES_PASSWORD=odoo --name db postgres
bc6eaad46584637e8417da980d613943fa8a7c82a5b1caccf39c50ef16c06c95
bash-3.2$ docker run -p 127.0.0.1:8069:8069 --name odoo --link db:db -t odoo
2015-09-10 16:16:39,742 1 INFO ? openerp: OpenERP version 8.0-20150401
2015-09-10 16:16:39,744 1 INFO ? openerp: addons paths: ['/var/lib/odoo/addons/8.0', u'/usr/lib/python2.7/dist-packages/openerp/addons', u'/mnt/extra-addons']
2015-09-10 16:16:39,744 1 INFO ? openerp: database hostname: localhost
2015-09-10 16:16:39,745 1 INFO ? openerp: database port: 5432
2015-09-10 16:16:39,746 1 INFO ? openerp: database user: odoo
2015-09-10 16:16:40,504 1 INFO ? openerp.service.server: Watching addons folder /var/lib/odoo/addons/8.0
2015-09-10 16:16:40,508 1 INFO ? openerp.service.server: Watching addons folder /usr/lib/python2.7/dist-packages/openerp/addons
2015-09-10 16:16:42,146 1 INFO ? openerp.service.server: Watching addons folder /mnt/extra-addons
2015-09-10 16:16:42,149 1 INFO ? openerp.service.server: AutoReload watcher running
2015-09-10 16:16:42,150 1 INFO ? openerp.service.server: HTTP service (werkzeug) running on 0.0.0.0:8069

Then I tried to go on http://192.168.99.100:8069 from OSX but get no response.

Running docker-machine ip default give me this same IP.

bash-3.2$  docker-machine ip default
192.168.99.100

@md5
Copy link
Contributor

md5 commented Sep 10, 2015

You're mapping explicitly to localhost with -p 127.0.0.1:8069:8069. This means that the port is not accessible outside the container. You may want to try just -p 8069:8069.

@gagarine
Copy link
Author

@md5 you right! Thanks a lot. Not sure if the documentation at https://hub.docker.com/_/odoo/ should be modified.

@gagarine
Copy link
Author

I asked their docker-library/docs#338

@FlimFlam
Copy link

@md5 i love you

@md5
Copy link
Contributor

md5 commented Dec 15, 2015

@FlimFlam 🤘

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants