Can't ping host network by name from Docker bridged container -


06.1-ce

i have container running in bridge newtork

"ipam": {   "driver": "default",   "options": null,   "config": [     {       "subnet": "172.18.0.0/16",       "gateway": "172.18.0.1"     }   ] } 

i can access containers no problem, need connect machine on host network. when docker exec -ti bash inside container, can ping i.p not name. how docker bridge network works?

update

i can ping full name. there way set search domain containers?

ok can set dns settings when using docker run

such as: --dns-search=mydomain.com

https://docs.docker.com/engine/userguide/networking/default_network/configure-dns/


Comments

Popular posts from this blog

ZeroMQ on Windows, with Qt Creator -

unity3d - Unity SceneManager.LoadScene quits application -

python - Error while using APScheduler: 'NoneType' object has no attribute 'now' -