yongliu
V2EX  ›  Docker

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

  •  
  •   yongliu ·
    liu7yong · Jul 30, 2021 · 3008 views
    This topic created in 1926 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
    touchwithe
    Jul 30, 2021 via iPhone❤️1
    1
    docker prune image
    3dwelcome
    3dwelcome
    Jul 30, 2021
    2
    留着除了占硬盘,又没别的用。

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