kamal prune

修剪旧容器和镜像。

Kamal 保留最后部署的 5 个容器以及它们正在使用的镜像。修剪操作将删除所有较旧的容器和镜像。

$ kamal help prune
Commands:
  kamal prune all             # Prune unused images and stopped containers
  kamal prune containers      # Prune all stopped containers, except the last n (default 5)
  kamal prune help [COMMAND]  # Describe subcommands or one specific subcommand
  kamal prune images          # Prune unused images