Azure / Azure/azure-quickstart-templates
docker-swarm: Error response from daemon: client is newer than server
- Dominant language
- Bicep
- Stars
- 14.9k
- Forks
- 16.2k
- Avg merge
- 6d 21h
- Merged PRs (30d)
- 6
Description
docker-swarm-cluster (https://github.com/Azure/azure-quickstart-templates/tree/master/docker-swarm-cluster)
### Issue Details
After setting up the cluster, for some of the commands such as docker login or docker logs etc. we get an error **Error response from daemon: client is newer than server (client API version: 1.23, server API version: 1.22)**
$ docker version
Client:
Version: 1.11.2
API version: 1.23
Go version: go1.5.4
Git commit: b9f10c9
Built: Wed Jun 1 21:54:25 2016
OS/Arch: linux/amd64
Server:
Version: swarm/1.2.3
API version: 1.22
Go version: go1.5.4
Git commit: eaa53c7
Built: Fri May 27 17:25:03 UTC 2016
OS/Arch: linux/amd64
### Repro steps
1. using the ARM template create a cluster
2. SSH to the master node using **ssh -L 2375:swarm-master-0:2375 -N @.westus.cloudapp.azure.com -p 2200**
3. run **export DOCKER_HOST="tcp://localhost:2375"**
4. run **docker login**
5. Provide credentials, the daemon error should show up.
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with the docker-swarm-cluster template linked in the issue and reproduce the setup using the ARM template, SSH tunnel, DOCKER_HOST, and docker login steps. Compare the client and server API versions shown by docker version; done means the reported daemon error no longer occurs for the listed commands.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- docker
- Domain
- cloud, infrastructure
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100