[Problems encountered when uninstalling docker: Device or resource busy]

rm -rf /var/lib/docker

hint:

rm: cannot remove ‘/var/lib/docker/aufs’: Device or resource busy

 

reason:

When the container was created, the corresponding directory was mounted, but not unmounted, so Device or resource busy

 

Solution:

Find the mounted directory cat /proc/mounts | grep "docker"
unmount umount /var/lib/docker/aufs
rm -rf /var/lib/docke

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324956706&siteId=291194637