Closed rn closed 6 years ago
Also reported as #104
I had a quick look at this, and it seems that we'd need to vendor in github.com/docker/cli
and then:
1) use something like GetDefaultAuthConfig()
for each registry we might pull from. This will look up credentials from the credidentials store (or config.json
2) call client.RegistryLogin()
in the code in dockerClient()
or elsewhere.
Currently
moby build
fails with:where
foo/bar
is a private repo on hub and I candocker pull
is manually.Looks like the
moby build
is not using authentication.