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

Conflicting options: host type networking can't be used with links #335

Open
f1-outsourcing opened this issue Nov 3, 2020 · 1 comment

Comments

@f1-outsourcing
Copy link

This is not allowed:

docker run -it --network host --link db:db --name odoo odoo:12

and this does nothing

docker run -it -e HOST=127.0.0.1 --network host --name odoo odoo:12

How to run this docker with host networking

@sbouillon
Copy link

I have no idea why you would want to run it via host networking but nonetheless...

You need to point it at your private IP address “192.168.1.x” and you need to include “5432” for the port.

If you create a docker network you can link the DB per the instructions like a normal container deployment.

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

2 participants