Adam Roderick
05/28/2020, 4:51 AMAdam Roderick
05/28/2020, 4:52 AMpush_image
that says "no basic auth credentials"Adam Roderick
05/28/2020, 4:53 AMflow.register()
. Same errorAdam Roderick
05/28/2020, 4:53 AMChris White
.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 AMAdam Roderick
05/28/2020, 5:37 AMboto3.client('ecr').create_repository()
to ensure it exists before trying to push to it. That was the only additional thing I ran intoAdam Roderick
05/28/2020, 5:37 AMAdam Roderick
05/28/2020, 5:38 AMdocker.login()
Adam Roderick
05/28/2020, 5:39 AMArsenii
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 AMAdam Roderick
05/28/2020, 5:44 AMflow.register()
? If I don't login at all, I get the "no basic auth credentials" error.Adam Roderick
05/28/2020, 5:44 AMAdam Roderick
05/28/2020, 5:44 AMAdam Roderick
05/28/2020, 5:54 AMsubprocess.run(['docker', 'login', '-u', username, '-p', password, url])
đ¤¨