Skip to content

DOCKER_CLI_EXPERIMENTAL="1" docker version fails with panic #2543

@qoo2p5

Description

@qoo2p5

DOCKER_CLI_EXPERIMENTAL="1" docker version fails with panic.

Steps to reproduce the issue:

  1. git clone https://github.com/docker/cli.git && cd cli
  2. make -f docker.Makefile shell
  3. make binary
  4. DOCKER_CLI_EXPERIMENTAL="1" ./build/docker-linux-amd64

Describe the results you received:

[signal SIGSEGV: segmentation violation code=0x1 addr=0x8 pc=0xa275dd]

goroutine 1 [running]:
github.com/docker/cli/cli/command.(*DockerCli).ClientInfo(...)
	/go/src/github.com/docker/cli/cli/command/cli.go:149
github.com/docker/cli/cli/command.(*DockerCli).DefaultVersion(0xc0003b69c0, 0xc00014e7fc, 0x4)
	/go/src/github.com/docker/cli/cli/command/cli.go:89 +0x2d
github.com/docker/cli/cli/command/system.runVersion(0x20bff80, 0xc0003b69c0, 0xc00032b220, 0x0, 0x0)
	/go/src/github.com/docker/cli/cli/command/system/version.go:145 +0x123
github.com/docker/cli/cli/command/system.NewVersionCommand.func1(0xc0005f4dc0, 0x3075708, 0x0, 0x0, 0x0, 0x0)
	/go/src/github.com/docker/cli/cli/command/system/version.go:108 +0x3c
github.com/docker/cli/vendor/github.com/spf13/cobra.(*Command).execute(0xc0005f4dc0, 0xc0005b1430, 0x0, 0x0, 0xc0005f4dc0, 0xc0005b1430)
	/go/src/github.com/docker/cli/vendor/github.com/spf13/cobra/command.go:842 +0x460
github.com/docker/cli/vendor/github.com/spf13/cobra.(*Command).ExecuteC(0xc000414580, 0xc0005b1430, 0x1, 0x1)
	/go/src/github.com/docker/cli/vendor/github.com/spf13/cobra/command.go:950 +0x349
github.com/docker/cli/vendor/github.com/spf13/cobra.(*Command).Execute(...)
	/go/src/github.com/docker/cli/vendor/github.com/spf13/cobra/command.go:887
main.runDocker(0xc0003b69c0, 0x202c2a0, 0xc00000e020)
	/go/src/github.com/docker/cli/cmd/docker/docker.go:281 +0x1d1
main.main()
	/go/src/github.com/docker/cli/cmd/docker/docker.go:292 +0xf1

Describe the results you expected:

Experimental field: "1" is not valid, should be either enabled or disabled

Additional information you deem important (e.g. issue happens only occasionally):

None

Output of docker version:

Client:
 Version:           20.03.0-dev
 API version:       1.40
 Go version:        go1.13.11
 Git commit:        590f3271ef
 Built:             Sun May 24 19:44:56 2020
 OS/Arch:           linux/amd64
 Context:           default
 Experimental:      false

Server: Docker Engine - Community
 Engine:
  Version:          19.03.9
  API version:      1.40 (minimum version 1.12)
  Go version:       go1.13.10
  Git commit:       9d988398e7
  Built:            Fri May 15 00:23:50 2020
  OS/Arch:          linux/amd64
  Experimental:     false
 containerd:
  Version:          1.2.13
  GitCommit:        7ad184331fa3e55e52b890ea95e65ba581ae3429
 runc:
  Version:          1.0.0-rc10
  GitCommit:        dc9208a3303feef5b3839f4323d9beb36df0a9dd
 docker-init:
  Version:          0.18.0
  GitCommit:        fec3683

Output of docker info:

Client:
 Context:    default
 Debug Mode: false

Server:
 Containers: 20
  Running: 1
  Paused: 0
  Stopped: 19
 Images: 78
 Server Version: 19.03.9
 Storage Driver: overlay2
  Backing Filesystem: extfs
  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: 7ad184331fa3e55e52b890ea95e65ba581ae3429
 runc version: dc9208a3303feef5b3839f4323d9beb36df0a9dd
 init version: fec3683
 Security Options:
  apparmor
  seccomp
   Profile: default
 Kernel Version: 5.4.0-050400-generic
 Operating System: Ubuntu 18.04.4 LTS
 OSType: linux
 Architecture: x86_64
 CPUs: 20
 Total Memory: 31.41GiB
 Name: **hidden**
 ID: **hidden**
 Docker Root Dir: /var/lib/docker
 Debug Mode: false
 Registry: https://index.docker.io/v1/
 Labels:
 Experimental: false
 Insecure Registries:
  127.0.0.0/8
 Live Restore Enabled: false

WARNING: No swap limit support

Additional environment details (AWS, VirtualBox, physical, etc.):

Doesn't matter.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions