Skip to content
This repository was archived by the owner on Mar 27, 2024. It is now read-only.

Fixing default search for /etc/docker/certs.d by image library #39

Merged
merged 2 commits into from
Aug 28, 2017

Conversation

cftorres
Copy link
Contributor

  • Cleaned up leftover methods from old Docker dependencies
  • Used @r2d4's suggestion for ways to get around /etc/docker/certs.d error with new Image library usage

fixes #21
@nkubala @aaron-prindle

img, err := ref.NewImage(nil)
cwd, _ := os.Getwd()
ctx := &types.SystemContext{
DockerCertPath: cwd,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Only comment here is that it will fail if your PWD has any certs in it (which I found out the hard way.) I might change my PR to set this to the output of ioutil.TempDir() just to be safe.

Copy link
Contributor

@r2d4 r2d4 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

and thats how the cookie crumbles

@dlorenc dlorenc merged commit 92d4f0e into GoogleContainerTools:master Aug 28, 2017
@runcom
Copy link

runcom commented Sep 2, 2017

Pretty sure we fixed this in containers/image latest master, could you try that?

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

Successfully merging this pull request may close these issues.

Error attempting to use container-diff w/ gcr.io. Permission denied for /etc/docker/certs.d/gcr.io
5 participants