mirror of
https://github.com/containers/skopeo.git
synced 2025-07-31 22:45:20 +00:00
todo(s)
Signed-off-by: Antonio Murdaca <runcom@redhat.com>
This commit is contained in:
parent
7c8a3fdbe0
commit
f2aedbe15f
@ -99,7 +99,6 @@ TODO
|
||||
-
|
||||
- show repo tags via flag or when reference isn't tagged or digested
|
||||
- add tests (integration with deployed registries in container - Docker-like)
|
||||
- get rid of Docker (meaning make this work w/o needing Docker installed)
|
||||
|
||||
NOT TODO
|
||||
-
|
||||
|
10
inspect.go
10
inspect.go
@ -97,20 +97,12 @@ func getData(c *cli.Context, ref reference.Named) (*imageInspect, error) {
|
||||
if err := validateRepoName(repoInfo.Name()); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
// FATA[0000] open /etc/docker/certs.d/myreg.com:4000: permission denied
|
||||
// need to be run as root, really? :(
|
||||
// just pass tlsconfig via cli?!?!?!
|
||||
//
|
||||
// this happens only with private registry, docker.io works out of the box
|
||||
// EDIT: this happens with v1 registries?! no
|
||||
//
|
||||
// TODO(runcom): do not assume docker is installed on the system!
|
||||
// just fallback as for getAuthConfig
|
||||
options := ®istry.Options{}
|
||||
options.InsecureRegistries = opts.NewListOpts(nil)
|
||||
options.Mirrors = opts.NewListOpts(nil)
|
||||
options.InsecureRegistries.Set("0.0.0.0/0")
|
||||
registryService := registry.NewService(options)
|
||||
// TODO(runcom): hacky, provide a way of passing tls cert (flag?) to be used to lookup
|
||||
for _, ic := range registryService.Config.IndexConfigs {
|
||||
ic.Secure = false
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user