(原)docker的一個“Driver aufs failed to remove...”問題的解決


1.  /var/lib/docker/aufs/mnt下的目錄不能亂刪! /var/lib/docker/aufs/diff下的目錄刪了就了!!!!!
2. 盡量不要用docker tag -f 這個-f恐怕是個大坑其實。。。(其實都是docker自己的bug。。)

問題描述

 “Driver aufs failed to remove...”或者

error creating aufs mount to /var/lib/docker/aufs/mnt /6c1b42ce1a98b1c0f2d2a7f17c196221445f1054566065d4c607e4f1b99930eb-init: invalid argument


問題的解決:

AUFS is unable to mount the docker container filesystem.

This is either because: the path is already mounted - or - there's a race condition in docker's interaction with AUFS, due to the large amount of existing volumes.

To solve this, try the following:

  1. restart the docker service or daemon and try again.

  2. check mount for aufs mounted on any paths under /var/lib/docker/aufs/. If found, stop docker, then umount them (need sudo).

    example:

$ mount

none on /var/lib/docker/aufs/mnt/55639da9aa959e88765899ac9dc200ccdf363b2f09ea933370cf4f96051b22b9 type aufs (rw,relatime,si=5abf628bd5735419,dio,dirperm1)

then
sudo umount /var/lib/docker/aufs/mnt/55639da9aa959e88765899ac9dc200ccdf363b2f09ea933370cf4f96051b22b9

  1. If that doesn't work, stop docker, then sudo rm -rf /var/lib/docker/aufs. You will lose any existing stopped containers and all images. But this is just about guaranteed to solve the problem.


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM