diff options
Diffstat (limited to 'libpod/options.go')
-rw-r--r-- | libpod/options.go | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/libpod/options.go b/libpod/options.go index 9d0d63777..56e8fa203 100644 --- a/libpod/options.go +++ b/libpod/options.go @@ -45,10 +45,8 @@ func WithStorageConfig(config storage.StoreOptions) RuntimeOption { } } -// WithImageConfig uses the given configuration to set up image handling -// If this is not specified, the system default configuration will be used -// instead -func WithImageConfig(defaultTransport string, insecureRegistries, registries []string) RuntimeOption { +// WithDefaultTransport sets the default transport for retrieving images +func WithDefaultTransport(defaultTransport string) RuntimeOption { return func(rt *Runtime) error { if rt.valid { return ErrRuntimeFinalized @@ -56,12 +54,6 @@ func WithImageConfig(defaultTransport string, insecureRegistries, registries []s rt.config.ImageDefaultTransport = defaultTransport - rt.config.InsecureRegistries = make([]string, len(insecureRegistries)) - copy(rt.config.InsecureRegistries, insecureRegistries) - - rt.config.Registries = make([]string, len(registries)) - copy(rt.config.Registries, registries) - return nil } } |