Aaron Goebel
09/22/2022, 5:19 PMBaseDockerLogin
and defines login as grabbing a token and calling login with the parsed out username, password etc.
I pass the registry to the DockerContainer
infrastructure and save the blocks.
When I create the blocks (registry and container), my prefect agents are initially able to execute deployments and pull the latest containers from ECR. But after 12 hours or so (I assume token expiration), all deployments to the agent :
docker.errors.APIError: 500 Server Error for <http+docker://localhost/v1.41/auth>: Internal Server Error ("login attempt to https://{My_ECR_Registry}/v2/ failed with status: 403 Forbidden
I'm kind of confused why it works right after creating a block and deployment, but seems like reauthentication does not