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

Fetching images when running docker in docker #418

Open
linusjonsson opened this issue Sep 25, 2024 · 1 comment
Open

Fetching images when running docker in docker #418

linusjonsson opened this issue Sep 25, 2024 · 1 comment

Comments

@linusjonsson
Copy link

I might be doing things the wrong way around here. I have an lab EKS cluster in AWS deployed using Terraform (actually openTofu) with the VPC CNI addon. I have yet to find a way to enable port mapping in that addon, but that is perhaps not even something supported when using EKS? (And this is probably the wrong forum for that question)

Now the cache has been deployed using ArgoCD + kustomize and that seems to work fine for most of my pods and I can see images getting cached. However, I have a gitlab runner that builds my code and that docker container pulls 3rd party docker images internally and that seems to fail as they are also pointed to localhost:7439.... which of course is something completely different inside the gitlab runner container. So my question is, should this be possible? I would prefer if these images could be cached as well and be accessed from within my gitlab runner container. Could this somehow be related to the fact that I have not explicitly enabled port mapping?

@Nicolasgouze
Copy link
Contributor

Hello @linusjonsson,

1- Unless I'm wrong, hostPort is supported starting VPC CNI 1.2 : https://github.com/aws/amazon-vpc-cni-k8s/blob/master/CHANGELOG.md and should not need any extra config.
Do you have any "clue" about a potential need to activate it explicitely ?

2- I’m not 100% sure I understood what you're trying to achieve :

  • A schema would here definitely help to get the "full picture"
  • Do you have any log about the failure you're talking about ?
  • Which executor are you using ?

3- Finally, I'm trying to summerize a bit in order to help :
A - I understand from your comment that :
1- You are using a gitlab runner inside a kubernetes cluster, in which kuik is already installed ?
2- You're using this kubernetes cluster as the executor for this runner ?
3- When a gitlab job is started, kubelet tries to retrieve the images needed to execute the jobs using localhost:7439 and it fails ?
B - Your ticket talks about docker in docker so I get a bit lost here ….

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

2 participants