Home  >  Q&A  >  body text

Docker 把硬盘占满了.

$> /var/lib/docker/devicemapper/devicemapper

这个文件已经6个 G 了. 请问有什么办法清空一下吗?

硬盘本来就不大.

PHP中文网PHP中文网2709 days ago677

reply all(3)I'll reply

  • 伊谢尔伦

    伊谢尔伦2017-04-22 09:00:43

    I found that it’s just a matter of putting the container content and pointers on another disk.

    reply
    0
  • 迷茫

    迷茫2017-04-22 09:00:43

    Theoretically, the one that takes up the most space should be aufs.

    You can delete the image through docker rmi
    And docker rm deletes the container to clean it up.

    reply
    0
  • 黄舟

    黄舟2017-04-22 09:00:43

    Use -v to map volumes when starting up. Don’t forget to delete -v when deleting the container

    reply
    0
  • Cancelreply