How are people using `DockerRegistryCredentials` t...
# prefect-docker
d
How are people using
DockerRegistryCredentials
to login with ECR? On the command line I would pass "AWS" as the username and the token from
aws ecr get-login-password
to STDIN, but that's not really an option here. I see a few PRs/issues related to it (notably docker-py, prefect), but no examples for the Block.
docker-py
's login doesn't have any native code for authenticating with AWS, and the issue I cited suggests people write their own authentication.
prefect-docker
just calls the client's login method.
a
did you ever figure this out?
d
No, went with the other way and just specify the ECR image in my prefect.yaml
a
I was able to do it using python_on_whales package