web-dev-qa-db-ja.com

AWS CodeBuildローカルビルドスクリプトを実行できません

GolangプロジェクトのCodeBuildをローカルで実行しようとしています。 Dockerイメージを取得しましたAmazon/aws-codebuild-local:latestとCodeBuildスクリプトを実行します./codebuild_build.sh -i aws/codebuild/standard:2.0 -s "/project/src"、何も起こりませんでした。次に、スクリプトで生成されたdockerコマンドをキャプチャしました:docker run -it -v //var/run/docker.sock:/var/run/docker.sock -e "IMAGE_NAME=aws/codebuild/standard:2.0" -e "SOURCE=/project/src" -e "INITIATOR=me" Amazon/aws-codebuild-local:latest

Dockerコマンドを実行すると、次のエラーが発生しました。

Removing network agent-resources_default
Removing volume agent-resources_source_volume
Removing volume agent-resources_user_volume
Creating network "agent-resources_default" with the default driver
Creating volume "agent-resources_source_volume" with local driver
Creating volume "agent-resources_user_volume" with local driver
Pulling build (aws/codebuild/standard:2.0)...
ERROR: The image for the service you're trying to recreate has been removed. If you continue, volume data could be lost. Consider backing up your data before continuing.

Continue with the new image? [yN]y
Pulling build (aws/codebuild/standard:2.0)...
ERROR: pull access denied for aws/codebuild/standard, repository does not exist or may require 'docker login': denied: requested access to the resource is denied

私のドッカーはログインしていると確信していますが、問題を解決するために次に何をすればよいかわかりません。

6
billcyz

DocsとMarcinが述べたとおりに手順を実行したところ、同じエラーが発生しました。

Pulling build (aws/codebuild:latest)...
ERROR: The image for the service you're trying to recreate has been removed. If you continue, volume data could be lost. Consider backing up your data before continuing.

Continue with the new image? [yN]n
ERROR: pull access denied for aws/codebuild, repository does not exist or may require 'docker login': denied: requested access to the resource is denied
0
burritoland