有时候Docker Hub上的自动构建会出现PAM系统错误,就像下面两个分开的构建中一样:
Preparing to unpack
.../mysql-server-5.5_5.5.38-0ubuntu0.14.04.1_amd64.deb ...
[91mchfn: PAM: System error
[0m
[91madduser: '/usr/bin/chfn -f MySQL Server mysql' returned error code
1. Exiting.
[0m
[91mdpkg: error processing archive
/var/cache/apt/archives/mysql-server-5.5_5.5.38-0ubuntu0.14.04.1_amd64.deb
(--unpack):
subprocess new pre-installation script returned error exit status 1
[0m
Preparing to unpack
.../redis-server_2%3a2.8.4-2_amd64.deb ...
[91mchfn: PAM: System error
[0m
[91madduser: '/usr/bin/chfn -f redis server redis' returned error code
1. Exiting.
[0m
[91mdpkg: error processing archive
/var/cache/apt/archives/redis-server_2%3a2.8.4-2_amd64.deb (--unpack):
subprocess new pre-installation script returned error exit status 1
[0m
有趣的是,这种失败情况只会间歇性地出现,并且使用相同的Dockerfile。有什么好的解决方法吗?
ssmtp
邮件用户的电子邮件与运行在容器中的站点名称匹配。 - Routhinator