moby / moby/swarmkit

error="Error response from daemon: client version 1.42 is too new

Open
#3,036 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Go
Stars
3.7k
Forks
676
Avg merge
4d 9h
Merged PRs (30d)
6

Description

my docker version is:
`Client: Docker Engine - Community
Version: 20.10.10
API version: 1.41
Go version: go1.16.9
Git commit: b485636
Built: Mon Oct 25 07:42:59 2021
OS/Arch: linux/amd64
Context: default
Experimental: true

Server: Docker Engine - Community
Engine:
Version: 20.10.10
API version: 1.41 (minimum version 1.12)
Go version: go1.16.9
Git commit: e2f740d
Built: Mon Oct 25 07:41:08 2021
OS/Arch: linux/amd64
Experimental: false
containerd:
Version: 1.4.11
GitCommit: 5b46e404f6b9f661a205e28d59c982d3634148f8
runc:
Version: 1.0.2
GitCommit: v1.0.2-0-g52b36a2
docker-init:
Version: 0.19.0
GitCommit: de40ad0
`

my swarmd version: swarmd github.com/docker/swarmkit v1.12.0-2276-g63033102.m

when my install swarmkit, there are no errors,but when i want to Initialize the first node by :
$ swarmd -d /tmp/node-1 --listen-control-api /tmp/node-1/swarm.sock --hostname node-1
there has been an error:
ERRO[0000] agent: node description unavailable agent="&{0xc0000f0180 0xc0001b6220 [] {0 0} <nil>}" error="Error response from daemon: client version 1.42 is too new. Maximum supported API version is 1.41" module=node/agent node.id=ynf1y34usrk32ch3r3znt0l6x

i try to export DOCKER_API_VERSION=1.41,but it doesn't work, and every service is rejected

what should i do....

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the reported swarmd initialization command with Docker Engine 20.10.10 and API versions 1.41/1.42, then trace the node-agent path that requests the daemon's node description. Investigate why DOCKER_API_VERSION is not honored and consider service requests as part of the reproduction; done means the first node initializes without the version error and services are accepted.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, go
Domain
distributed-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.