add etc/hosts database key, as requested at Docker London

Signed-off-by: Justin Cormack <justin.cormack@docker.com>
This commit is contained in:
Justin Cormack 2016-07-22 14:27:20 +01:00
parent ca5dbde634
commit b1abb2f523

View File

@ -13,6 +13,8 @@ start() {
mobyconfig exists etc/resolv.conf && mobyconfig get etc/resolv.conf > /etc/resolv.conf
mobyconfig exists etc/hosts && mobyconfig get etc/hosts >> /etc/hosts
# handle static network config if configured
mobyconfig exists net/config && NETCONFIG=`mobyconfig get net/config`
if [ "${NETCONFIG}" = "static" ]; then