docker
docker copied to clipboard
Conflicting options: host type networking can't be used with links
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
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.