2019独角兽企业重金招聘Python工程师标准>>>
You cannot copy over /etc/hosts. Docker provides the container with a custom /etc/hosts file.
You can overwrite this by using -v /some/file:/etc/hosts when creating the container. You can also write to the file from inside the container. You can also use the --add-host option when creating the container to add your own custom entries.
But you cannot copy over it. This is not something we can support, so closing.
转载于:https://my.oschina.net/u/1186013/blog/1621475
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)