错误:在docker dr elephant build中找不到匹配项

错误:在docker dr elephant build中找不到匹配项,docker,Docker,我在测试大象博士: 但当我跑步时: docker build -t dr-elephant:2.0.6 . 我要走了 Complete! Last metadata expiration check: 0:00:19 ago on Thu Oct 24 07:51:21 2019. No match for argument: krb5-auth-dialog No match for argument: pam_krb5 Error: Unable to find a match The

我在测试大象博士:

但当我跑步时:

docker build -t dr-elephant:2.0.6 .
我要走了

Complete!
Last metadata expiration check: 0:00:19 ago on Thu Oct 24 07:51:21 2019.
No match for argument: krb5-auth-dialog
No match for argument: pam_krb5
Error: Unable to find a match
The command '/bin/sh -c yum install -y wget git unzip zip which  && yum install -y krb5-server krb5-libs krb5-workstation  && yum install -y krb5-auth-dialog pam_krb5  && yum install -y openssh-server openssh-clients  && yum clean all' returned a non-zero code: 1

你知道怎么解决这个问题吗


谢谢错误就在那里:
yum
无法安装名为
pam_krb5
krb5 auth dialog

您可以通过运行
centos
映像并尝试安装这些软件包来轻松测试这一点:

[root@228fcb9e4c19 /]# yum install -y krb5-auth-dialog pam_krb5
Failed to set locale, defaulting to C
CentOS-8 - AppStream                                                                                                                                                                                                                            1.1 MB/s | 6.0 MB     00:05
CentOS-8 - Base                                                                                                                                                                                                                                 2.0 MB/s | 7.9 MB     00:03
CentOS-8 - Extras                                                                                                                                                                                                                               634  B/s | 2.1 kB     00:03
No match for argument: krb5-auth-dialog
No match for argument: pam_krb5
Error: Unable to find a match
关于如何解决这个问题。。。您可以尝试删除该行(Dockerfile中的9),但如何知道应用程序是否需要这些包?所以,你最好的办法就是联系店主,告诉他他的Dockerfile已经不工作了(已经2年了)


通常会出现此问题,因为基本映像没有固定版本。您可以从centos:latest查看它是否使用了
,但今天的centos与两年前的centos不同。您也可以尝试编辑基本映像的标记并使用较旧的centos版本,这可能有效,也可能无效。

错误就在那里:
yum
无法安装名为
pam_krb5
krb5 auth dialog

您可以通过运行
centos
映像并尝试安装这些软件包来轻松测试这一点:

[root@228fcb9e4c19 /]# yum install -y krb5-auth-dialog pam_krb5
Failed to set locale, defaulting to C
CentOS-8 - AppStream                                                                                                                                                                                                                            1.1 MB/s | 6.0 MB     00:05
CentOS-8 - Base                                                                                                                                                                                                                                 2.0 MB/s | 7.9 MB     00:03
CentOS-8 - Extras                                                                                                                                                                                                                               634  B/s | 2.1 kB     00:03
No match for argument: krb5-auth-dialog
No match for argument: pam_krb5
Error: Unable to find a match
关于如何解决这个问题。。。您可以尝试删除该行(Dockerfile中的9),但如何知道应用程序是否需要这些包?所以,你最好的办法就是联系店主,告诉他他的Dockerfile已经不工作了(已经2年了)


通常会出现此问题,因为基本映像没有固定版本。您可以从centos:latest查看它是否使用了
,但今天的centos与两年前的centos不同。您也可以尝试编辑基本映像的标记并使用较旧的centos版本,它可能会工作,也可能不会工作。

krb5 auth dialog不再适用于从版本7开始的所有RHEL指令。krb5 auth dialog不再适用于从版本7开始的所有RHEL指令