Can't run Docker container due device mapper error

前端 未结 5 558
囚心锁ツ
囚心锁ツ 2020-12-25 14:36

I just can\'t create and run new containers in Docker anymore. But in the same time a can run previously created containers.

When I try to do something like this:<

5条回答
  •  甜味超标
    2020-12-25 15:24

    When the docker partition filled and docker would no longer start after reboot, I encountered this:

    # thin_check /var/lib/docker/devicemapper/devicemapper/metadata
    examining superblock
    examining devices tree
      missing devices: [0, -]
        bad checksum in btree node
    examining mapping tree
      thin device 72 is missing mappings [137494, 137594]
        bad checksum in btree node
      thin device 72 is missing mappings [137721, -]
        bad checksum in btree nodebad checksum in btree nodebad checksum in btree nodebad checksum in btree nodebad checksum in btree nodebad checksum in btree nodebad checksum in btree nodebad checksum in btree nodebad checksum in btree nodebad checksum in btree nodebad checksum in btree nodebad checksum in btree nodebad checksum in btree nodebad checksum in btree node
    

    I was able to repair with this procedure:

    # thin_dump -r /var/lib/docker/devicemapper/devicemapper/metadata -o /tmp/metadata.xml
    # thin_restore -i /tmp/metadata.xml -o /var/lib/docker/devicemapper/devicemapper/metadata
    

提交回复
热议问题