mirror of
https://github.com/containers/skopeo.git
synced 2025-08-31 22:28:33 +00:00
Accept repositories on login/logout
We now synchronize the behavior with Podman and accept repositories during login and logout per default. Signed-off-by: Sascha Grunert <sgrunert@redhat.com>
This commit is contained in:
@@ -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)
|
||||
|
@@ -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)
|
||||
|
Reference in New Issue
Block a user