Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Update paused due to failure or early termination of task. OCI runtime create failed: container_linux.go:2… [DOCKER]

I tried to update my service with

sudo docker service update result --network-add backend --publish-add 5001 And got the error stating

result
overall progress: 0 out of 1 tasks 
1/1: starting container failed: OCI runtime create failed: container_linux.go:2… 
service update paused: update paused due to failure or early termination of task gyovus3crd23v3wb22m1lbxf5

However I stopped the process while service result was being created because it took long time. Is there any way to complete the process of creation now?

like image 713
Neha Avatar asked Sep 13 '25 09:09

Neha


2 Answers

Got the same error when using docker swarm and worker didn't have enough disc space to download the image to deploy.

Solution: login to worker using ssh and run docker system prune -f to remove old images.

like image 197
jcubic Avatar answered Sep 16 '25 01:09

jcubic


Something in your change is causing those containers to crash.

It could be your command option order. The service name always goes at the end. If you look at docker service update --help you'll see it say:

Usage: docker service update [OPTIONS] SERVICE

Start a new update cycle by fixing the command:

sudo docker service update --network-add backend --publish-add 5001 result

like image 38
Bret Fisher Avatar answered Sep 16 '25 00:09

Bret Fisher