I have a service that doesn't always update. Docker service inspect will sometimes list is as updated or will sometimes just say updating for hours, like so:
ID: y2aajwbddimk8qpds91jzduxs
Name: pitchup_gunicorn
Labels:
com.docker.stack.image=registry.gitlab.pitchup.com/pitchup/pitchup.com/master:767a4cc0-13456
com.docker.stack.namespace=pitchup
Service Mode: Replicated
Replicas: 4
UpdateStatus:
State: updating
Started: 18 hours ago
Message: update in progress
Placement:
Constraints: [node.labels.gunicorn == true]
UpdateConfig:
Parallelism: 1
Delay: 30s
On failure: continue
Monitoring Period: 30s
Max failure ratio: 0
Update order: stop-first
RollbackConfig:
Parallelism: 1
On failure: pause
Monitoring Period: 5s
Max failure ratio: 0
Rollback order: stop-first
ContainerSpec:
Image: registry.gitlab.pitchup.com/pitchup/pitchup.com/master:767a4cc0-13456@sha256:1cadc4f4ceaa5a8551636a417bfc0bd76189bdb2afadcd262581c96aeeeb6f64
but on some hosts it doesn't update:
docker ps --format "table {{.Names}}\t{{.Status}}\t{{.Image}}" | grep gunicorn
pitchup_gunicorn.2.q7fp4u3bkfkz0dr8tpns49vq7 Up 18 hours (healthy) registry.gitlab.pitchup.com/pitchup/pitchup.com/master:767a4cc0-13456
pitchup_gunicorn.4.pw9pacn1zhbw0dy29wp9wuygd Up 19 hours (healthy) registry.gitlab.pitchup.com/pitchup/pitchup.com/master:7a464095-13452
Can see it still has the old version.
To fix it I can scale down and scale up and it updates the instances.
I have a service that doesn't always update. Docker service inspect will sometimes list is as updated or will sometimes just say updating for hours, like so:
but on some hosts it doesn't update:
Can see it still has the old version.
To fix it I can scale down and scale up and it updates the instances.
The manager:
on the non manager node that didn't update