Add support for registry authentication

Updates the docker resolver to support authenticating
with registries.

Signed-off-by: Derek McGowan <derek@mcgstyle.net>
This commit is contained in:
Derek McGowan
2017-04-28 15:58:00 -07:00
parent 427468c626
commit 9d3f452371
6 changed files with 580 additions and 71 deletions

4
cmd/dist/fetch.go vendored
View File

@@ -39,7 +39,7 @@ not use this implementation as a guide. The end goal should be having metadata,
content and snapshots ready for a direct use via the 'ctr run'.
Most of this is experimental and there are few leaps to make this work.`,
Flags: []cli.Flag{},
Flags: registryFlags,
Action: func(clicontext *cli.Context) error {
var (
ctx = background
@@ -51,7 +51,7 @@ Most of this is experimental and there are few leaps to make this work.`,
return err
}
resolver, err := getResolver(ctx)
resolver, err := getResolver(ctx, clicontext)
if err != nil {
return err
}