I am using Docker v1.7.1 and running a CentOS 7 container on a host running Ubuntu 14.04. I run the container with --net=host so I have access to the host’s network stack. However, I’ve noticed I can’t change a user’s password inside the container:
Changing password for user root.
Retype new password:
passwd: System error
Log files are just not there, unfortunately.
For the life of me I can’t place the connection between exposing the host’s network stack (–net=host) and not being able to set or change a user’s password inside the container. I’ve only been able to reproduce when the host is running Ubuntu 14.04 (works fine with CentOS 7 and Debian 8, what is it about Ubuntu 14.04?)