-
Notifications
You must be signed in to change notification settings - Fork 339
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Docker pull fails when run from a cronjob #870
Comments
Hey, thanks for bringing this up!
Is everything besides the |
@sondavidb Hi there, thanks for the response! Apologies, I should've made it clearer but yeah the I made the change you suggested—removing the |
Thanks. I attempted to reproduce this with a cron job that runs once every minute but couldn't get it to reproduce. Can you make sure this is similar enough to your setup? Commands
FWIW, it's erroring out for me if running the job with sudo, but if I copy the config to |
Hey @chrisforrette just wanted to check in again and see if the setup above looks correct |
Hello there, thank you for building this helper!
I'm having an issue where we've configured this ECR helper on an EC2 instance and it works fine to
docker pull
an image during an SSH session, but I wrote a cron job to periodically pull a specific image and it fails like so:My
/root/.docker/config.json
looks like this:And I see nothing appending to
~/.ecr/log/ecr-login.log
when these run.My suspicion is that perhaps
~/.docker/config.json
is not loaded during cron jobs but I can't find much documentation about it. Do you happen to know if this is the case? Or if there might be something else going on?Thanks!
The text was updated successfully, but these errors were encountered: