Skip to content

CLI raises spurious error on docker context create (CLI v 28) #5849

@mtraynham

Description

@mtraynham

Description

Creating a Docker context with SSH raises a spurious error on 5:28.0.0-1ubuntu.24.04noble.

$ docker context create arm64 --docker host=ssh://172.17.101.26,skip-tls-verify=False

unable to create docker endpoint config: name: %!w(<nil>)

Downgrading to docker-ce-cli=5:27.5.1-1ubuntu.24.04noble corrects the issue.

Reproduce

  1. Spawn two VMs for building
  2. Install docker-ce, docker-ce-cli, containerd.io on both
  3. Add an SSH key to one of the VMs
  4. Copy the public key to the other VM
  5. Verify SSH connectivity
  6. Create a Docker context on the initial VM to to setup a Docker context over SSH
  7. Notice the error

Expected behavior

docker context create arm64 --docker host=ssh://172.17.101.26,skip-tls-verify=False should not error

docker version

NOTE: This is after the downgrade of the CLI to 27.5.1 - the issue is with CLI 28.0.0.

Client: Docker Engine - Community
 Version:           27.5.1
 API version:       1.47
 Go version:        go1.22.11
 Git commit:        9f9e405
 Built:             Wed Jan 22 13:41:48 2025
 OS/Arch:           linux/amd64
 Context:           default

Server: Docker Engine - Community
 Engine:
  Version:          28.0.0
  API version:      1.48 (minimum version 1.24)
  Go version:       go1.23.6
  Git commit:       af898ab
  Built:            Wed Feb 19 22:11:04 2025
  OS/Arch:          linux/amd64
  Experimental:     false
 containerd:
  Version:          1.7.25
  GitCommit:        bcc810d6b9066471b0b6fa75f557a15a1cbf31bb
 runc:
  Version:          1.2.4
  GitCommit:        v1.2.4-0-g6c52b3f
 docker-init:
  Version:          0.19.0
  GitCommit:        de40ad0

docker info

NOTE: This is after the downgrade of the CLI to 27.5.1 - the issue is with CLI 28.0.0.

Client: Docker Engine - Community
 Version:    27.5.1
 Context:    default
 Debug Mode: false
 Plugins:
  buildx: Docker Buildx (Docker Inc.)
    Version:  v0.21.0
    Path:     /usr/libexec/docker/cli-plugins/docker-buildx
  compose: Docker Compose (Docker Inc.)
    Version:  v2.33.0
    Path:     /usr/libexec/docker/cli-plugins/docker-compose

Server:
 Containers: 1
  Running: 1
  Paused: 0
  Stopped: 0
 Images: 2
 Server Version: 28.0.0
 Storage Driver: overlay2
  Backing Filesystem: extfs
  Supports d_type: true
  Using metacopy: false
  Native Overlay Diff: true
  userxattr: false
 Logging Driver: json-file
 Cgroup Driver: systemd
 Cgroup Version: 2
 Plugins:
  Volume: local
  Network: bridge host ipvlan macvlan null overlay
  Log: awslogs fluentd gcplogs gelf journald json-file local splunk syslog
 Swarm: inactive
 Runtimes: runc io.containerd.runc.v2
 Default Runtime: runc
 Init Binary: docker-init
 containerd version: bcc810d6b9066471b0b6fa75f557a15a1cbf31bb
 runc version: v1.2.4-0-g6c52b3f
 init version: de40ad0
 Security Options:
  apparmor
  seccomp
   Profile: builtin
  cgroupns
 Kernel Version: 6.8.0-1012-aws
 Operating System: Ubuntu 24.04 LTS
 OSType: linux
 Architecture: x86_64
 CPUs: 2
 Total Memory: 3.747GiB
 Name: ip-172-17-101-153
 ID: 87ff4e18-95b9-401e-9540-5d694cd1b2fd
 Docker Root Dir: /var/lib/docker
 Debug Mode: false
 Experimental: false
 Insecure Registries:
  ::1/128
  127.0.0.0/8
 Live Restore Enabled: false

Additional Info

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions