cli/command/registry: remove deprecated io/ioutil

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
Sebastiaan van Stijn 2022-02-25 14:29:48 +01:00
parent f61aab59f7
commit 3b3a0b898f
No known key found for this signature in database
GPG Key ID: 76698F39D527CE8C
1 changed files with 2 additions and 2 deletions

View File

@ -3,7 +3,7 @@ package registry
import (
"context"
"fmt"
"io/ioutil"
"io"
"strings"
"github.com/docker/cli/cli"
@ -84,7 +84,7 @@ func verifyloginOptions(dockerCli command.Cli, opts *loginOptions) error {
return errors.New("Must provide --username with --password-stdin")
}
contents, err := ioutil.ReadAll(dockerCli.In())
contents, err := io.ReadAll(dockerCli.In())
if err != nil {
return err
}