Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/amazon-web-services/12.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/docker/10.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Amazon web services amazon aws docker注册表的ecr令牌错误_Amazon Web Services_Docker - Fatal编程技术网

Amazon web services amazon aws docker注册表的ecr令牌错误

Amazon web services amazon aws docker注册表的ecr令牌错误,amazon-web-services,docker,Amazon Web Services,Docker,以下是我的用户注册表策略: { "Version": "2012-10-17", "Statement": [ { "Sid": "Stmt1494526914000", "Effect": "Allow", "Action": [ "ecr:GetAuthorizationToken" ], "Resource"

以下是我的用户注册表策略:

{
    "Version": "2012-10-17",
    "Statement": [
        {
            "Sid": "Stmt1494526914000",
            "Effect": "Allow",
            "Action": [
                "ecr:GetAuthorizationToken"
            ],
            "Resource": [
                "*"
            ]
        }
    ]
}
我没有MFA认证

但当我尝试时:

bussiere@kusanagi:~/Workspace/*****$ aws ecr get-login

An error occurred (AccessDeniedException) when calling the GetAuthorizationToken operation: User: arn:aws:iam::*******:user/bussiere is not authorized to perform: ecr:GetAuthorizationToken on resource: *
bussiere@kusanagi:~/Workspace/*****$ 


非常感谢,考虑到您似乎拥有正确的策略,您可能没有什么帮助,但是权限并不正确。您是否设置了区域,是否在cli中使用该用户的密钥?作为测试,它是否使用托管策略AmazonEC2ContainerRegistryPowerUser工作