Skip to content
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

Use private images #31

Closed
ykhatal opened this issue Sep 12, 2017 · 4 comments
Closed

Use private images #31

ykhatal opened this issue Sep 12, 2017 · 4 comments

Comments

@ykhatal
Copy link

ykhatal commented Sep 12, 2017

Hi,

First i would like to thank you for your great work.

Since we are going to use Ofelia to setup some cron jobs, we want to know if there is a way to authenticate to docker hub and be able to retrieve private images.
The issue we had is when we use the job-run, we get an error about docker not being able to retrieve the private image.

If there is a way to do so, it would be great to add it to the documentation.

thanks in advance.

@Nightbr
Copy link

Nightbr commented Nov 29, 2017

Hey,

like watchtower: https://github.com/v2tec/watchtower, you need to pass your config.json:

docker run -d \
  --name ofelia \
  -v ~/.docker/config.json:/config.json \
  -v /var/run/docker.sock:/var/run/docker.sock \
  -v $BASEDIR/config:/etc/ofeliai \
  mcuadros/ofelia

Let me know if this resolve the issue.

@auryn31
Copy link

auryn31 commented Aug 20, 2019

unfortunately this doesn't work. is there another way?

@Nightbr
Copy link

Nightbr commented Aug 20, 2019

Don't forget to docker login {registry} before & link the correct path to the config file.

But it seems the configuration is not taken into account anyway on Ofelia:
https://github.com/mcuadros/ofelia/blob/master/core/runjob.go#L14

This will need a PR I think.

@auryn31
Copy link

auryn31 commented Aug 20, 2019

I am already logged in. I can use the image without Ofelia easily.

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants