Skip to content

How do I add AWS ECR as a registry? #1556

Closed Answered by j0urneyk
j0urneyk asked this question in Q&A
Discussion options

You must be logged in to vote

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:

$ apt update -y
$ apt upgrade -y
$ apt install sudo vim curl wget net-tools -y

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:

$ mkdir $HOME/.docker

$ vim $HOME/.docker/config.json

# Add the following content to the $HOME/.docker/config.json file and save it.
{
    "credsS…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by j0urneyk
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants