docker-pilot
Version:
A powerful, scalable Docker CLI library for managing containerized applications of any size
52 lines • 1.31 kB
TypeScript
import { BaseCommand } from './BaseCommand';
import { CommandResult, CommandOptions, CommandContext } from '../types';
export declare class CleanCommand extends BaseCommand {
constructor(context: CommandContext);
execute(args: string[], _options: CommandOptions): Promise<CommandResult>;
/**
* Determine which cleanup operations to perform
*/
private getCleanupOperations;
/**
* Execute clean operations based on selected types
*/
private executeCleanOperations;
/**
* Clean stopped containers
*/
private cleanContainers;
/**
* Clean unused images
*/
private cleanImages;
/**
* Clean unused volumes
*/
private cleanVolumes;
/**
* Clean unused networks
*/
private cleanNetworks;
/**
* Clean build cache
*/
private cleanBuildCache;
/**
* Execute Docker command with proper error handling
*/
private execDockerCommand;
/**
* Parse Docker size output (e.g., "1.2GB", "500MB")
*/
private parseSizeString;
/**
* Format bytes to human-readable size
*/
private formatSize;
/**
* Show cleanup summary
*/
private showCleanupSummary;
protected showExamples(): void;
}
//# sourceMappingURL=CleanCommand.d.ts.map