4 ms·
Re ECR (the EC2 Container Registry), it has one downside that the author doesn't mention, which also applies to Google's own registry. A Docker registry has ow
by lobster_johnson 10y ago
Re ECR (the EC2 Container Registry), it has one downside that the author doesn't mention, which also applies to Google's own registry.
A Docker registry has own authentication system. So does AWS (and GCloud). So what you end up is one wrapping the other: To access the ECR, you have to run an AWS command to get a token to put into "docker login". Google has "gcloud docker login" for the same purposes. Both produce temporary credentials that time out, so can't be used for long-running things.
This means that any tool designed to work with a Docker registry needs to support this particular workflow. For example, this affects Drone [1].
It also adds complexity. GCloud is particularly heavy on the authentication complexity side already (compared to AWS's comparatively simple keypair approach), and with SSH, GCR and Kubernetes on top it starts to stack up in ways which can make users' head spin.
Straight Docker Hub is refreshingly straightforward by comparison.
[1] http://readme.drone.io http://readme.drone.io (not to be confused with drone.io)
- erikgrinaker 10y agoAt least with Google's GCR, this is no longer the case. They have a Docker credentials helper [1] which transparently handles authentication for regular interactive use, and service accounts with permanent keys [2] for use with CI servers etc. I find both of these to be fairly straightforward to use. [1] https://github.com/GoogleCloudPlatform/docker-credential-gcr https://github.com/GoogleCloudPlatform/docker-credential-gcr [2] https://cloud.google.com/container-registry/docs/advanced-authentication#using_a_json_key_file https://cloud.google.com/container-registry/docs/advanced-au...