Hi everyone,
I want to change my hostname throgh the Dockerfile copying a local file hosts in /etc/hosts but does not work.
This is my Dockerfile:
FROM ubuntu
RUN apt-get update && apt-get install -y bind9 bind9utils bind9-doc
COPY hosts /etc/hosts
COPY named.conf.local /etc/bind/named.conf.local
The file called named.conf.local is successfully copied in my container while hosts file not. Anyone knows the problem?
Thank you.