我不能使用Amazon ECR
注册表与创建private registry
一样吗?
docker push <ecr/registry/ip>/<image_name>
docker pull <ecr/registry/ip>/<image_name>
我们需要使用aws cli
,但我不想使用它并通过私有注册表方法来处理它。
有线索吗?
答案 0 :(得分:0)
您将需要使用flutter doctor -v
,
[✓] Flutter (Channel stable, v1.2.1, on Mac OS X 10.14.3 18D109, locale en-GB)
• Flutter version 1.2.1 at /Users/pierre-emmanueljacquier/flutter
• Framework revision 8661d8aecd (3 weeks ago), 2019-02-14 19:19:53 -0800
• Engine revision 3757390fa4
• Dart version 2.1.2 (build 2.1.2-dev.0.0 0a7dcf17eb)
[!] Android toolchain - develop for Android devices (Android SDK version 28.0.3)
• Android SDK at /Users/pierre-emmanueljacquier/Library/Android/sdk
• Android NDK location not configured (optional; useful for native profiling support)
• Platform android-28, build-tools 28.0.3
• Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1248-b01)
! Some Android licenses not accepted. To resolve this, run: flutter doctor --android-licenses
[!] iOS toolchain - develop for iOS devices (Xcode 10.1)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Xcode 10.1, Build version 10B61
✗ ios-deploy not installed. To install:
brew install ios-deploy
• CocoaPods version 1.6.1
[!] Android Studio (version 3.3)
• Android Studio at /Applications/Android Studio.app/Contents
✗ Flutter plugin not installed; this adds Flutter specific functionality.
✗ Dart plugin not installed; this adds Dart specific functionality.
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1248-b01)
[✓] VS Code (version 1.31.1)
• VS Code at /Applications/Visual Studio Code.app/Contents
• Flutter extension version 2.24.0
此命令将为您输出一个或多个aws cli
命令,包括用户,密码和您请求的注册表的特定注册表URL,然后您可以aws ecr get-login --registry-ids 012345678910 023456789012
输出或运行手动执行命令,然后可以使用docker login
和eval
。
更多信息here