IBM Support

Docker error when running paw.sh: Cannot start service <container_name>: oci runtime error: container with id exists: {container_id}

Troubleshooting


Problem

Docker is unable to start containers on Linux:
Cannot start service <container_name>: oci runtime error: container with id exists: {container_id}
For example:
ERROR: for share-app Cannot start service share-app: oci runtime error: container with id exists: 30dcc8af9b9dc112ff1db6cac13f1e29e6b113892582ae07bc562b9b8efaf554
Starting bss ... error

Cause

Docker daemon crashed for some reason, and left some temporary files behind.

Resolving The Problem

If Linux cannot be rebooted or if rebooting is not sufficient, then remove remaining containers from /run/runc and /run/containerd, for example:

rm -rf /run/runc/30dcc8af9b9dc112ff1db6cac13f1e29e6b113892582ae07bc562b9b8efaf554
rm -rf /run/containerd/30dcc8af9b9dc112ff1db6cac13f1e29e6b113892582ae07bc562b9b8efaf554

Document Location

Worldwide

[{"Type":"MASTER","Line of Business":{"code":"LOB10","label":"Data and AI"},"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Product":{"code":"SSCTEW","label":"IBM Planning Analytics Local"},"ARM Category":[{"code":"a8m50000000KzIzAAK","label":"Planning Analytics-\u003EPlanning Analytics Workspace"}],"ARM Case Number":"","Platform":[{"code":"PF016","label":"Linux"}],"Version":"All Versions"}]

Document Information

Modified date:
07 April 2022

UID

ibm16570359