Singleuser's hosts can not be modified

When I fix it in dockerfile, it doesn’t work.Please help me with this. thanks in advance.