I want to modify permissions etc/hosts file in docker as I am continuously modifying it. I want to make particular user have the access or have the 744 access on it. I tried following in docker file.
USE root
RUN chown <user>:<group> /etc/hosts
USE root
RUN chmod 777 /etc/hosts
However this doesn't work and throws an exception on saying that etc/host is readable and hence can't change permission.