I get start with docker and when I try this command :
$ docker service list
in my server, I get this error message
*Error: Swarm certificates have expired. To replace them, leave the swarm and join again*.
As the error says, I must leave the swarm and join it again . But the problem is that I don't have the swarm's token, adresse and port. I don't also know which node is the swarm manager.
The command
$ docker info
gives me the following output :
Containers: 0
Running: 0
Paused: 0
Stopped: 0
Images: 149
Server Version: 1.13.0
Storage Driver: aufs
Root Dir: /var/lib/docker/aufs
Backing Filesystem: extfs
Dirs: 226
Dirperm1 Supported: false
Logging Driver: json-file
Cgroup Driver: cgroupfs
Plugins:
Volume: local
Network: bridge host macvlan null overlay
Swarm: error
NodeID:
Error: Swarm certificates have expired. To replace them, leave the swarm and join again.
Is Manager: false
Node Address: 172.30.4.4
Runtimes: runc
Default Runtime: runc
Init Binary: docker-init
containerd version: 03e5862ec0d8d3b3f750e19fca3ee367e13c090e
runc version: 2f7393a47307a16f8cee44a37b262e8b81021e3e
init version: 949e6fa
Security Options:
apparmor
Kernel Version: 3.13.0-108-generic
Operating System: Ubuntu 14.04.2 LTS
OSType: linux
Architecture: x86_64
CPUs: 2
Total Memory: 3.861 GiB
Name: london-pop
ID: 3O2U:VE5T:CMZU:HZUW:H3FR:ATB3:HRQE:Q2PI:BEOY:VS4T:4L4L:X276
Docker Root Dir: /var/lib/docker
Debug Mode (client): false
Debug Mode (server): false
Username: maouadj
Registry: https://index.docker.io/v1/
WARNING: No swap limit support
Experimental: false
Insecure Registries:
127.0.0.0/8
Live Restore Enabled: false"
Can someone tells me how can I solve the problem of swarm certificat expiration or how can I abtain swarm token, Ip address and port from a worker node, please? NB : Almost all docker swarm swarm command gives me the same error :
Error: Swarm certificates have expired. To replace them, leave the swarm and join again.