Open testworksau opened 3 years ago
Adding to this, sudo docker login
segfaults
david@WIN-*************:~/Docker-Provider-log-scale/kubernetes/linux/dockerbuild$ sudo docker login
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x8 pc=0x55eb449b1406]
goroutine 1 [running]:
github.com/docker/cli/cli/command.ConfigureAuth(0x**********, 0x**********, 0x0, 0x0, 0x0, 0x0, 0x0, 0x**********, 0x**********, 0x**********)
/go/src/github.com/docker/cli/cli/command/registry.go:128 +0x46
github.com/docker/cli/cli/command/registry.runLogin(0x**********, 0x**********, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
/go/src/github.com/docker/cli/cli/command/registry/login.go:123 +0x223
github.com/docker/cli/cli/command/registry.NewLoginCommand.func1(0x**********, 0x**********, 0x0, 0x0, 0x0, 0x0)
/go/src/github.com/docker/cli/cli/command/registry/login.go:45 +0xcc
github.com/docker/cli/vendor/github.com/spf13/cobra.(*Command).execute(0x**********, 0x**********, 0x0, 0x0, 0x**********, 0x**********)
/go/src/github.com/docker/cli/vendor/github.com/spf13/cobra/command.go:850 +0x462
github.com/docker/cli/vendor/github.com/spf13/cobra.(*Command).ExecuteC(0x**********, 0x**********, 0x1, 0x1)
/go/src/github.com/docker/cli/vendor/github.com/spf13/cobra/command.go:958 +0x34b
github.com/docker/cli/vendor/github.com/spf13/cobra.(*Command).Execute(...)
/go/src/github.com/docker/cli/vendor/github.com/spf13/cobra/command.go:895
main.runDocker(0x**********, 0x**********, 0x**********)
/go/src/github.com/docker/cli/cmd/docker/docker.go:287 +0x1d3
main.main()
/go/src/github.com/docker/cli/cmd/docker/docker.go:298 +0xf3
(hex values cencored in case they contain login information) ran on WSL 2 Ubuntu 18.04
[signal SIGSEGV: segmentation violation code=0x1 addr=0x8 pc=0x560bdefc9406]
goroutine 1 [running]:
github.com/docker/cli/cli/command.ConfigureAuth(0x560be0a0bfe0, 0xc0005125b0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x560be097b401, 0xc0002e3630, 0xc0005af968)
/go/src/github.com/docker/cli/cli/command/registry.go:128 +0x46
github.com/docker/cli/cli/command/registry.runLogin(0x560be0a0bfe0, 0xc0005125b0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
/go/src/github.com/docker/cli/cli/command/registry/login.go:123 +0x223
github.com/docker/cli/cli/command/registry.NewLoginCommand.func1(0xc0002bcb00, 0x560be1a165c8, 0x0, 0x0, 0x0, 0x0)
/go/src/github.com/docker/cli/cli/command/registry/login.go:45 +0xcc
github.com/docker/cli/vendor/github.com/spf13/cobra.(*Command).execute(0xc0002bcb00, 0xc0002e2990, 0x0, 0x0, 0xc0002bcb00, 0xc0002e2990)
/go/src/github.com/docker/cli/vendor/github.com/spf13/cobra/command.go:850 +0x462
github.com/docker/cli/vendor/github.com/spf13/cobra.(*Command).ExecuteC(0xc0004002c0, 0xc0002e2990, 0x1, 0x1)
/go/src/github.com/docker/cli/vendor/github.com/spf13/cobra/command.go:958 +0x34b
github.com/docker/cli/vendor/github.com/spf13/cobra.(*Command).Execute(...)
/go/src/github.com/docker/cli/vendor/github.com/spf13/cobra/command.go:895
main.runDocker(0xc0005125b0, 0x560be097e120, 0xc000010020)
/go/src/github.com/docker/cli/cmd/docker/docker.go:287 +0x1d3
main.main()
/go/src/github.com/docker/cli/cmd/docker/docker.go:298 +0xf3```
Description
Segfault occurs if attempting to use the wrong command to display help for docker login
Steps to reproduce the issue:
docker login /?
Describe the results you received:
Describe the results you expected: A message telling me the command I entered is invalid.
Additional information you deem important (e.g. issue happens only occasionally): N/A
Output of
docker version
:Output of
docker info
:Additional environment details (AWS, VirtualBox, physical, etc.): Physical machine running on
Windows 10 20H2