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

private registry .dockercfg #44

Open
cobrowserAlex opened this issue May 11, 2016 · 3 comments
Open

private registry .dockercfg #44

cobrowserAlex opened this issue May 11, 2016 · 3 comments

Comments

@cobrowserAlex
Copy link

To be able to access our private registry over I need to add a .dockercfg in /var/lib/kubelet/ this however gets wiped on every restart of the VM. I am using VirtualBox...

Is there any way we can make this persist?

@sebgoa
Copy link
Member

sebgoa commented May 11, 2016

@cobrowserAlex thanks for reporting this. let me ping @cab105 so we can look at it

@cab105
Copy link
Contributor

cab105 commented May 15, 2016

Hmmm my initial post never really made it. Let me try again. I apologize for taking so long to notice this.

Hello,

The boot2k8s image is a read-only image without any form of persistent mount point. The current workaround I can see is to generate a new boot2k8s image to include the .dockercfg file at that location. For a couple of alternatives:

  1. Modify boot2k8s to mount a persistent storage device at boot time which should work provided the .dockercfg doesn't have to be in /var/lib/kubelet
  2. Update kmachine to allow for passing in a configuration script that will provide user-specific setup details so when the VM is brought down and started back up again via kmachine, then the configuration will be persisted.

I can see option 2 coming in more handy for other environments and providers besides boot2k8s.

Thoughts?
Chris

@cobrowserAlex
Copy link
Author

As a workaround I now just manually run a script inside the shared directory that copies stuff in the right place, Similar to option 2.

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