moby: error using chpasswd with host networking and ubuntu:14.04 image
when using chpasswd command on the ubuntu:14.04 image with and without host networking yields different results.
without host networking there is not issue using the chpasswd command
docker run -i -t --rm ubuntu:14.04 bash
echo "root:secretpasswod" | chpasswd
with host networking the chpasswd command doesn’t work
docker run -i -t --rm --net='host' ubuntu:14.04 bash
echo "root:secretpasswod" | chpasswd
chpasswd: (user root) pam_chauthtok() failed, error:
System error
chpasswd: (line 1, user root) password not changed
About this issue
- Original URL
- State: closed
- Created 13 years ago
- Comments: 25 (4 by maintainers)
For those coming from the search engines…
In my case the password was too simple and needed to use a stronger one, using the capital and small letters, digits and symbols. For ex, P2sswrd!!!