So I have a weird q that should be easy; how do I use boto3 to authenticate to an ECR repository and then pull the image using docker-py? I can't seem to make that work! #Python #whyisthishard
@offby1 looks like you’re integrating 3 or possibly 4 things at once! maybe setup and test dockerhub authentication manually, then substitute ecr for dockerhub, then docker-py for docker, finally boto3. each time, you’re starting from a known good integration state so you know where the sticky area is
@mcandre everything works except auth via docker login/pull. I can even pull using client.images.pull with an auth_config parameter, just not via client.login() -> client.images.pull(). It's mystifying.
@offby1 Confirm that pydocker reads auth configuration from the same place that boto3 writes it.
@mcandre it doesn't. But boto3 returns creds, docker login takes them and logs in.. but doesn't seem to share that state with docker pull.