Error: “error creating aufs mount to” when building dockerfile

前端 未结 11 1310
南旧
南旧 2020-12-13 05:55

I get this error when I try to build a docker file

 error creating aufs mount to /var/lib/docker/aufs/mnt   
 /6c1b42ce1a98b1c0f2d2a7f17c196221445f1054566065         


        
11条回答
  •  旧巷少年郎
    2020-12-13 06:46

    A similar issue arose while I was using Docker in Windows:

    ERROR: Service 'daemon' failed to build: error creating overlay mount
    to /var/lib/docker/overlay2/83c98f716020954420e8b89e6074b1af6
    1b2b86cd51ac6a54724ed263b3663a2-init/merged: no such file or directory
    

    The problem occurred after having removed a volume from the image's Dockerfile, rebuilding the image and then rebooting the PC. Maybe this is a common cause?

    I managed to solve the problem by clicking Docker -> Settings -> Reset -> Reset to factory defaults...

    All my images were subsequently lost but that didn't matter for me. I also figured that removing the VM disk image (the path to which can be found under the Advanced tab in Settings) could solve the issue. I haven't tried this approach however.

提交回复
热议问题