Docker Community Forums

Share and learn in the Docker community.

/etc/hosts - Cannot Read

Good Day,

We have the following permissions on the server itself :

-rw-r–r--. 1 root root 352 Apr 24 2017 hosts

However, within the container, it is as follows :

-rw-r----- 1 root root 174 Apr 3 08:59 hosts

I have hunted about but only solutions provide alternate ways of presenting a different hosts file or defining entries at container start.

Anyone have an idea of what is changing the permissions.

# docker --version
Docker version 19.03.5, build 633a0ea

Regards