yongliu
V2EX  ›  Docker

大家用 docker 部署时怎么处理旧的 image 啊?

  •  
  •   yongliu ·
    liu7yong · Jul 30, 2021 · 2655 views
    This topic created in 1773 days ago, the information mentioned may be changed or developed.

    公司没有专门的运维人员,选择了用 docker 作为日常的部署,运行一段时间后就会发现服务器上和 registry 中留下了一堆没用的 image,大家一般是怎么维护这些 image 的,定期清理吗?

    4 replies    2021-07-30 11:26:43 +08:00
    touchwithe
        1
    touchwithe  
       Jul 30, 2021 via iPhone   ❤️ 1
    docker prune image
    3dwelcome
        2
    3dwelcome  
       Jul 30, 2021
    留着除了占硬盘,又没别的用。

    当然服务器通常硬盘大,可能也无所谓。
    tyit
        3
    tyit  
       Jul 30, 2021
    docker prune image -a -f
    akuo
        4
    akuo  
       Jul 30, 2021
    registry 的参数居多,好像有一个是自动清理的参数,百度下
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2963 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 47ms · UTC 03:11 · PVG 11:11 · LAX 20:11 · JFK 23:11
    ♥ Do have faith in what you're doing.