diff --git a/cmd/skopeo/login.go b/cmd/skopeo/login.go index 9dfe3d2b55..0f0f6c26eb 100644 --- a/cmd/skopeo/login.go +++ b/cmd/skopeo/login.go @@ -38,6 +38,7 @@ func (opts *loginOptions) run(args []string, stdout io.Writer) error { defer cancel() opts.loginOpts.Stdout = stdout opts.loginOpts.Stdin = os.Stdin + opts.loginOpts.AcceptRepositories = true sys := opts.global.newSystemContext() if opts.tlsVerify.present { sys.DockerInsecureSkipTLSVerify = types.NewOptionalBool(!opts.tlsVerify.value) diff --git a/cmd/skopeo/logout.go b/cmd/skopeo/logout.go index 839bbb6ffa..3d49f60c83 100644 --- a/cmd/skopeo/logout.go +++ b/cmd/skopeo/logout.go @@ -34,6 +34,7 @@ func logoutCmd(global *globalOptions) *cobra.Command { func (opts *logoutOptions) run(args []string, stdout io.Writer) error { opts.logoutOpts.Stdout = stdout + opts.logoutOpts.AcceptRepositories = true sys := opts.global.newSystemContext() if opts.tlsVerify.present { sys.DockerInsecureSkipTLSVerify = types.NewOptionalBool(!opts.tlsVerify.value)