Adam Roderick
05/28/2020, 4:51 AMpush_image
that says "no basic auth credentials"flow.register()
. Same errorChris White
05/28/2020, 4:58 AM.register()
call; I suggest starting by trying to pull your base_image
or push to your configured registry_url
and seeing if that raises the same errorAdam Roderick
05/28/2020, 5:03 AMArsenii
05/28/2020, 5:34 AMbase_url
-- the defaults may not be optimal.
For me in the end, it turned out I had to pass tls_config
since the running Docker was configured with that level of security. Otherwise the authentication failedAdam Roderick
05/28/2020, 5:36 AMboto3.client('ecr').create_repository()
to ensure it exists before trying to push to it. That was the only additional thing I ran intodocker.login()
Arsenii
05/28/2020, 5:39 AMOne thing I have to do is callÂAh, interesting. I'm basically reusing the same repository but assign unique tags to each flow's docker image -- so no need to create new repos all the timeboto3.client('ecr').create_repository()
Adam Roderick
05/28/2020, 5:43 AMflow.register()
? If I don't login at all, I get the "no basic auth credentials" error.subprocess.run(['docker', 'login', '-u', username, '-p', password, url])
đ¤¨