相关文章推荐

docker login fail #4049

@lengrongfu

Description

Description

I having a customer registry, such as: example.registry.com , user: test , password: pwd , user this command login whll fail,

$ docker login -u test -p pwd example.registry.com
  • error info
    WARNING! Using --password via the CLI is insecure. Use --password-stdin.
    Error response from daemon: Get https://example.registry.com/v2/ : unauthorized: authentication required
  • user this command login success. Username and password don't make any difference.

    $ docker login example.registry.com
    username: test
    password: pwd
    

    Reproduce

    $ docker login -u test -p pwd example.registry.com

    Expected behavior

    No response

    docker version

    Client: Docker Engine - Community
     Version:           19.03.14
     API version:       1.40
     Go version:        go1.13.15
     Git commit:        5eb3275
     Built:             Tue Dec  1 19:14:24 2020
     OS/Arch:           linux/amd64
     Experimental:      true
    Server:
     Engine:
      Version:          19.03.14-sealer
      API version:      1.40 (minimum version 1.12)
      Go version:       go1.13.15
      Git commit:       711cc111cf
      Built:            Wed Jun  2 09:07:15 2021
      OS/Arch:          linux/amd64
      Experimental:     true
     containerd:
      Version:          v1.6.6
      GitCommit:        10c12954828e7c7c9b6e0ea9b0c02b01407d3ae1
     runc:
      Version:          1.1.3
      GitCommit:        v1.1.3-0-g6724737f
     docker-init:
      Version:          0.18.0
      GitCommit:        fec3683

    docker info

    Client:
     Debug Mode: false
    
    
    
    
        
    
     Plugins:
      buildx: Docker Buildx (Docker Inc., v0.9.1)
    Server:
     Containers: 28
      Running: 0
      Paused: 0
      Stopped: 28
     Images: 82
     Server Version: 19.03.14-sealer
     Storage Driver: overlay2
      Backing Filesystem: xfs
      Supports d_type: true
      Native Overlay Diff: true
     Logging Driver: json-file
     Cgroup Driver: cgroupfs
     Plugins:
      Volume: local
      Network: bridge host ipvlan macvlan null overlay
      Log: awslogs fluentd gcplogs gelf journald json-file local logentries splunk syslog
     Swarm: inactive
     Runtimes: runc
     Default Runtime: runc
     Init Binary: docker-init
     containerd version: 10c12954828e7c7c9b6e0ea9b0c02b01407d3ae1
     runc version: v1.1.3-0-g6724737f
     init version: fec3683
     Security Options:
      seccomp
       Profile: default
     Kernel Version: 5.18.14-1.el7.elrepo.x86_64
     Operating System: CentOS Linux 7 (Core)
     OSType: linux
     Architecture: x86_64
     CPUs: 8
     Total Memory: 15.63GiB
     Name: 1
     ID: OEL6:57HH:C5LV:AGHO:SDRX:FQ3V:DBCL:APVQ:CIQK:3CUW:FVIA:FZHZ
     Docker Root Dir: /var/lib/docker
     Debug Mode: false
     Username: lengrongfu
     Registry: https://index.docker.io/v1/
     Labels:
     Experimental: true
     Insecure Registries:
      example.registry.com
     Live Restore Enabled: false

    Additional Info

    No response

     
    推荐文章