We have installed docker version 20.10.23-ce on our OS SUSE Linux Enterprise Server 15 SP3, arch -x86_64. And we are seeing the following issue intermittently when trying to cleanup all the docker containers using “docker ps -aq | xargs docker rm --force” and creating the new containers again.
Error message:
ERROR: for auth-service Cannot start service auth: unable to remount dir as readonly: mount tmpfs:/var/lib/docker/containers/727c809d75d8535efd27be0f943e4ffde527ce6d08a92192dc0081c123d8c9a2/mounts/secrets, flags: 0x21, data: uid=0,gid=0: device or resource busy
Also this error message can be seen in docker daemon logs:
level=error msg=“727c809d75d8535efd27be0f943e4ffde527ce6d08a92192dc0081c123d8c9a2 cleanup: failed to delete container from containerd: no such container”
We also observed that after cleanup of docker containers, no containers can be seen when we run command “docker ps -a”. Also the /var/lib/docker/containers directory is empty. But still we see the mount issue sometimes when trying to recreate containers.