-
Hello, First of all, thank you for creating such an excellent open‑source project. I’m trying to add AWS ECR under the Registry menu, but I’m not sure what to put in the Password field. Typically, AWS ECR authentication is done like this: $ aws ecr get-login-password --region {region} | docker login --username AWS --password-stdin {aws-account-id}.dkr.ecr.{region}.amazonaws.com However, the password returned by aws ecr get-login-password expires after a certain period. In other words, it’s inconvenient to have to update the configured registry’s password every time the existing one expires. Is there a way to avoid this and configure a non‑expiring or automatically refreshed authentication for AWS ECR? Thank you for your help! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
I'd like to use ECR registry as well and I'm dealing with the same problem. ![]() @Siumauricio or anyone has an idea how to make this work? |
Beta Was this translation helpful? Give feedback.
-
Since the maintainer doesn't seem to be interested in this issue, I'm sharing a hacky workaround I used a few months ago. In short, I mounted AWS credentials and the 1. Basic SetupI ran Dokploy on an Ubuntu base, so I installed the following packages: $ apt update -y
$ apt upgrade -y
$ apt install sudo vim curl wget net-tools -y 2. Configuration
|
Beta Was this translation helpful? Give feedback.
Since the maintainer doesn't seem to be interested in this issue, I'm sharing a hacky workaround I used a few months ago.
In short, I mounted AWS credentials and the
amazon-ecr-credential-helper
package into the Dokploy container.1. Basic Setup
I ran Dokploy on an Ubuntu base, so I installed the following packages:
2. Configuration
$HOME/.docker/config.json
The
amazon-ecr-credential-helper
will not work correctly if you don't modify.docker/config.json
as follows: