Hello community, how to use image from AWS ECR wh...
# ask-the-community
y
Hello community, how to use image from AWS ECR while running pyflyte register -i command .. by default it's pointing to the public docker hub .. is there any configuration given for the same.. i have tried imagePullSecret by attaching to the default service account still it's not working so...
s
It should work. I presume you are trying to pull a private image and you referred to https://docs.flyte.org/projects/cookbook/en/latest/auto/deployment/deploying_workflows.html#working-hosted-service guide to do so?
y
yes
is there any way to check the configuration are right??
s
Um not sure. @Kevin Su, do you know how to debug this?
y
can you try the docker command i sent you @Yash Panchwatkar
Copy code
docker run <your image> python -c "import boto3"
want to make sure the library is installed.
y
yes sure.. will send output in min
here
when I run the command
Copy code
pyflyte register -i <http://x.y.z.dkr.ecr.us-west-2.amazonaws.com/flyte_test:v2|x.y.z.dkr.ecr.us-west-2.amazonaws.com/flyte_test:v2>  ../select_wf  -p flytesnacks
this gives the error

https://flyte-org.slack.com/files/U044UT2LV8C/F048KMSB347/image.png

y
i don’t think the docker command is working
y
oh then need to make it manually for recheck...
will do it and let you know...in comment..
k
Seems like there is a default entrypoint in your image or base image. overriding the entrypoint in the image can probably fix it. https://stackoverflow.com/questions/65107143/lambda-container-images-complain-about-entrypoint-needing-handler-name-as-the-fi
Copy code
ENTRYPOINT ["/bin/bash", "-l", "-c"]
y
Yes sure....
186 Views