Update ctr resolver to use new config package

Moved registry host configuration to the config package
and allows support of loading configurations from a
directory when the hosts are being resolved.

Signed-off-by: Derek McGowan <derek@mcgstyle.net>
This commit is contained in:
Derek McGowan
2020-03-31 21:46:57 -07:00
parent 17b6050d20
commit 547301cb0c
3 changed files with 21 additions and 189 deletions

View File

@@ -62,9 +62,9 @@ var (
Usage: "refresh token for authorization server",
},
cli.StringFlag{
Name: "certs-dir",
Name: "hosts-dir",
// compatible with "/etc/docker/certs.d"
Usage: "custom certificates directory that contains \"<hostname>/{ca.crt, client.cert, client.key}\"",
Usage: "Custom hosts configuration directory",
},
}