Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/amazon-web-services/14.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 Web Services_Docker_Command Line Interface_Amazon Ecs_Amazon Ecr - Fatal编程技术网

Amazon web services 使用替换获取登录密码生成失败

Amazon web services 使用替换获取登录密码生成失败,amazon-web-services,docker,command-line-interface,amazon-ecs,amazon-ecr,Amazon Web Services,Docker,Command Line Interface,Amazon Ecs,Amazon Ecr,我正在尝试更新此行以在CLI v2上工作,但看不到失败的地方。 从 到 每次构建都会在这一点上失败,我尝试了许多相同的变体,但都没有成功。啊,原来我用来构建的预生产映像仍然使用CLI v1,这就是为什么我的参数失败的原因。你能试一下sh-c”aws吗 sh "eval \$(aws ecr get-login --no-include-email --region eu-west-1)" sh "aws ecr get-login-password --no-in

我正在尝试更新此行以在CLI v2上工作,但看不到失败的地方。 从


每次构建都会在这一点上失败,我尝试了许多相同的变体,但都没有成功。

啊,原来我用来构建的预生产映像仍然使用CLI v1,这就是为什么我的参数失败的原因。

你能试一下
sh-c”aws吗
sh "eval \$(aws ecr get-login --no-include-email --region eu-west-1)"
sh "aws ecr get-login-password --no-include-email --region eu-west-1 | docker login --username AWS --password-stdin ************.dkr.ecr.eu-west-1.amazonaws.com"