mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-07-22 02:21:34 +00:00
Merge pull request #343 from justincormack/etchosts
add etc/hosts database key, as requested at Docker London
This commit is contained in:
commit
a3dfb93479
@ -13,6 +13,8 @@ start() {
|
|||||||
|
|
||||||
mobyconfig exists etc/resolv.conf && mobyconfig get etc/resolv.conf > /etc/resolv.conf
|
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
|
# handle static network config if configured
|
||||||
mobyconfig exists net/config && NETCONFIG=`mobyconfig get net/config`
|
mobyconfig exists net/config && NETCONFIG=`mobyconfig get net/config`
|
||||||
if [ "${NETCONFIG}" = "static" ]; then
|
if [ "${NETCONFIG}" = "static" ]; then
|
||||||
|
Loading…
Reference in New Issue
Block a user