Commit 8f54d926 by Felix Abecassis

lxc-oci: add IPv6 support to /etc/hosts

parent e86dcc91
...@@ -308,6 +308,11 @@ EOF ...@@ -308,6 +308,11 @@ EOF
cat <<EOF > ${LXC_ROOTFS}/etc/hosts cat <<EOF > ${LXC_ROOTFS}/etc/hosts
127.0.0.1 localhost 127.0.0.1 localhost
127.0.1.1 ${LXC_NAME} 127.0.1.1 ${LXC_NAME}
::1 localhost ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
EOF EOF
uidgid=($(getuidgid ${OCI_CONF_FILE})) uidgid=($(getuidgid ${OCI_CONF_FILE}))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment