Docker Community Forums

Share and learn in the Docker community.

Difference in docker 1.10.3 when running container with -net=none

When I run the following command on docker 1.10.3 and 1.9.1:
docker run -itd --net=none --name=test_container busybox

I got different /etc/hosts content inside the container:
docker 1.10.3: localhost

ff02::2 ip6-allrouters

docker 1.9.1: localhost

ff02::2 ip6-allrouters

In docker 1.10.3 container, the /etc/hosts file has an extra line of the container id but isn’t mapped to any address.
This breaks my existing software which ran well on 1.9.1 before.

I’m wondering whether the new line was introduced on purpose? Is there any way to avoid the extra line?