参考资料:
http://bbs.csdn.net/topics/390871429
http://tieba.baidu.com/p/4295556808
http://stackoverflow.com/questions/27357253/docker-run-append-to-etc-hosts-in-dockerfile-not-working
推荐方式:
https://github.com/hiteshjasani/nim-mungehosts
:Modifying /etc/hosts in Docker images for fun and profit:http://jasani.org/2014/11/16/modifying-etchosts-in-docker-images-for-fun-and-profit/
Unable to modify /etc/hosts file in a container:https://github.com/docker/docker/issues/1951
Docker容器修改hosts文件重启不变:http://dockone.io/question/400
http://stackoverflow.com/questions/27357253/docker-run-append-to-etc-hosts-in-dockerfile-not-working