我使用以下命令
创建了docker注册表密码kubectl create secret docker-registry regcred --docker-server=https://dockerreleaselocal.jfrog.io --docker-username=user --docker-password='password' --docker-email=email
以下是用于提取图像的Kubernetes yaml代码
apiVersion: batch/v1
kind: Job
metadata:
name: artifactory-terraform-job
spec:
template:
spec:
containers:
- image: dockerreleaselocal.jfrog.io/terraform:v0.11.7.001
name: terraform-container
imagePullSecrets:
- name: regcred
Failed to pull image "dockerreleaselocal.jfrog.io/terraform:v0.11.7.001": rpc error: code = Unknown desc = Error response from daemon: missing signature key
Server Version: version.Info{Major:"1", Minor:"9+", GitVersion:"v1.9.7-2+231cc32d0a1119", GitCommit:"231cc32d0a111940d45936b3206548c610869df2", GitTreeState:"clean", BuildDate:"2018-04-25T08:09:04Z", GoVersion:"go1.9.3", Compiler:"gc", Platform:"linux/amd64"}
docker pull dockerreleaselocal.jfrog.io/terraform:v0.11.7.001
Error response from daemon: missing signature key
我是否需要进行其他配置才能解决问题?
答案 0 :(得分:1)
Dixon Almedia,我的好先生,真是个不可思议的好地方。如果您没有先到那儿,肯定会花2天的时间来解决这个问题。
答案 1 :(得分:0)
上述问题与用户的ACL有关。用户应具有Docker注册表的注释权限。如果他具有注释权限,则将使用清单文件自动生成属性。