Skip to content

[BUG] panic: runtime error: invalid memory address or nil pointer dereference #12711

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Catower917 opened this issue Apr 7, 2025 · 2 comments
Labels

Comments

@Catower917
Copy link

Description

An error occurs when I execute a docker instruction in IDE

panic: runtime error: invalid memory address or nil pointer dereference
[signal 0xc0000005 code=0x0 addr=0x58 pc=0xfd8100]

goroutine 1 [running]:
github.com/docker/cli/vendor/github.com/docker/docker/client.(*Client).ClientVersion(0xc000330f00?)
/go/src/github.com/docker/cli/vendor/github.com/docker/docker/client/client.go:317
github.com/docker/cli/cli/command.(*DockerCli).CurrentVersion(0xc000330f00)
/go/src/github.com/docker/cli/cli/command/cli.go:111 +0x30
main.hideUnsupportedFeatures.func4({0x19fa2fa, 0x4})
/go/src/github.com/docker/cli/cmd/docker/docker.go:493 +0x29
main.hideSubcommandIf(0xc000384308, 0xc00069f8b8, {0x19fd3b2?, 0xc00069f920?})
/go/src/github.com/docker/cli/cmd/docker/docker.go:458 +0x51
main.hideUnsupportedFeatures(0xc0001c3808, {0x1c08de8?, 0xc000330f00?})
/go/src/github.com/docker/cli/cmd/docker/docker.go:518 +0x265
main.setHelpFunc.func1(0xc0001c3808, {0x25f3080, 0x0, 0x0})
/go/src/github.com/docker/cli/cmd/docker/docker.go:202 +0x1f3
main.newDockerCommand.func1.ShowHelp.1(0xc0001c3808, {0x25f3080, 0x0, 0x0})
/go/src/github.com/docker/cli/cli/command/cli.go:147 +0x63
main.newDockerCommand.func1(0x0?, {0x25f3080?, 0x0?, 0xa856467a00000000?})
/go/src/github.com/docker/cli/cmd/docker/docker.go:85 +0x5c
main.runDocker.(*DockerCli).InstrumentCobraCommands.func5.2(0xc0001c3808, {0x25f3080, 0x0, 0x0})
/go/src/github.com/docker/cli/cli/command/telemetry_utils.go:58 +0x6c
github.com/docker/cli/vendor/github.com/spf13/cobra.(*Command).execute(0xc0001c3808, {0x25f3080, 0x0, 0x0})
/go/src/github.com/docker/cli/vendor/github.com/spf13/cobra/command.go:985 +0xaca
github.com/docker/cli/vendor/github.com/spf13/cobra.(*Command).ExecuteC(0xc0001c3808)
/go/src/github.com/docker/cli/vendor/github.com/spf13/cobra/command.go:1117 +0x3ff
github.com/docker/cli/vendor/github.com/spf13/cobra.(*Command).Execute(...)
/go/src/github.com/docker/cli/vendor/github.com/spf13/cobra/command.go:1041
github.com/docker/cli/vendor/github.com/spf13/cobra.(*Command).ExecuteContext(...)
/go/src/github.com/docker/cli/vendor/github.com/spf13/cobra/command.go:1034
main.runDocker({0x1c13998, 0xc000308c00}, 0xc000330f00)
/go/src/github.com/docker/cli/cmd/docker/docker.go:418 +0x9f1
main.dockerMain()
/go/src/github.com/docker/cli/cmd/docker/docker.go:50 +0x1ae
main.main()
/go/src/github.com/docker/cli/cmd/docker/docker.go:32 +0x13

Steps To Reproduce

No response

Compose Version


Docker Environment


Anything else?

No response

@ndeloof
Copy link
Contributor

ndeloof commented Apr 8, 2025

Please let us know the version of compose you're running

@glours
Copy link
Contributor

glours commented Apr 14, 2025

Closing due to inactivity
Since we haven’t heard back in a few days and there are not enough details to help , we’re closing this issue.
Feel free to reopen or create a new one if you have more details to share.

@glours glours closed this as completed Apr 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants