docker icon indicating copy to clipboard operation
docker copied to clipboard

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

Open f1-outsourcing opened this issue 4 years ago • 1 comments

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

f1-outsourcing avatar Nov 03 '20 21:11 f1-outsourcing

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.

sbouillon avatar Nov 07 '20 12:11 sbouillon