/etc/hosts when using docker

did we have to config /etc/hosts when we run from source code using docker?