有时,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
有趣的是,这种失败只是间歇性地发生并且使用相同的Dockerfiles.有没有办法解决?
最佳答案