Hi Team,
Currently, I am running the docker service in my standard alone docker swarm setup (only the master node). When I start to run the zookeeper service it’s getting started and is there for approx 30 seconds to one min and the service got deleted automatically from the system. Below is the command I used to run the zookeeper service.
docker service create --name zookeeper --network test --env ALLOW_ANONYMOUS_LOGIN=yes docker.io/bitnami/zookeeper:3.8
I have enabled experimental and debug logs to identify the cause. I see the below log repeating approx 4 times and then it’s calling the delete service call. Below are the debug logs.
level=debug msg="Calling GET /tasks?filters=%7B%22service%22%3A%5B%22zookeeper%22%5D%2C%22desired-state%22%3A%5B%22running%22%5D%7D"
level=debug msg="error handling rpc" error="rpc error: code = NotFound desc = service zookeeper not found" rpc=/docker.swarmkit.v1.Control/GetService
level=debug msg="Calling GET /tasks?filters=%7B%22service%22%3A%5B%22zookeeper%22%5D%2C%22desired-state%22%3A%5B%22running%22%5D%7D"
level=debug msg="error handling rpc" error="rpc error: code = NotFound desc = service zookeeper not found" rpc=/docker.swarmkit.v1.Control/GetService
level=debug msg="Calling GET /tasks?filters=%7B%22service%22%3A%5B%22zookeeper%22%5D%2C%22desired-state%22%3A%5B%22running%22%5D%7D"
level=debug msg="error handling rpc" error="rpc error: code = NotFound desc = service zookeeper not found" rpc=/docker.swarmkit.v1.Control/GetService
level=debug msg="Calling DELETE /v1.41/services/zookeeper"
This is happening for almost all the services which I create. So can anyone please help me to identify the problem here why docker GET TASKS call is not able to find the running service and so.
Below is my docker info.
Client:
Context: default
Debug Mode: false
Plugins:
app: Docker App (Docker Inc., v0.9.1-beta3)
buildx: Build with BuildKit (Docker Inc., v0.5.1-docker)
scan: Docker Scan (Docker Inc., v0.12.0)
Server:
Containers: 3
Running: 3
Paused: 0
Stopped: 0
Images: 17
Server Version: 20.10.6
Storage Driver: overlay2
Backing Filesystem: extfs
Supports d_type: true
Native Overlay Diff: true
userxattr: false
Logging Driver: json-file
Cgroup Driver: cgroupfs
Cgroup Version: 1
Plugins:
Volume: local
Network: bridge host ipvlan macvlan null overlay
Log: awslogs fluentd gcplogs gelf journald json-file local logentries splunk syslog
Swarm: active
NodeID: <MY NODE ID>
Is Manager: true
ClusterID: <MY CLUSTER ID>
Managers: 1
Nodes: 1
Default Address Pool: 10.0.0.0/8
SubnetSize: 24
Data Path Port: 4789
Orchestration:
Task History Retention Limit: 5
Raft:
Snapshot Interval: 10000
Number of Old Snapshots to Retain: 0
Heartbeat Tick: 1
Election Tick: 10
Dispatcher:
Heartbeat Period: 5 seconds
CA Configuration:
Expiry Duration: 3 months
Force Rotate: 0
Autolock Managers: false
Root Rotation In Progress: false
Node Address: <MY NODE IP>
Manager Addresses:
<MY MANAGER IP>:2377
Runtimes: io.containerd.runtime.v1.linux runc io.containerd.runc.v2
Default Runtime: runc
Init Binary: docker-init
containerd version: 7b11cfaabd73bb80907dd23182b9347b4245eb5d
runc version: v1.0.2-0-g52b36a2
init version: de40ad0
Security Options:
apparmor
seccomp
Profile: default
Kernel Version: 4.15.0-208-generic
Operating System: Ubuntu 18.04.6 LTS
OSType: linux
Architecture: x86_64
CPUs: 12
Total Memory: 100.3GiB
Name: <HOSTNAME>
Docker Root Dir: /var/lib/docker
Debug Mode: false
Registry: https://index.docker.io/v1/
Labels:
Experimental: true
Live Restore Enabled: false
WARNING: No swap limit support