diff --git a/lib/mrsk/cli/app.rb b/lib/mrsk/cli/app.rb index 2f515011..f2116831 100644 --- a/lib/mrsk/cli/app.rb +++ b/lib/mrsk/cli/app.rb @@ -93,6 +93,11 @@ class Mrsk::Cli::App < Mrsk::Cli::Base on(MRSK.hosts) { |host| puts_by_host host, capture_with_info(*MRSK.app.list_containers) } end + desc "images", "List all the app images currently on servers" + def images + on(MRSK.hosts) { |host| puts_by_host host, capture_with_info(*MRSK.app.list_images) } + end + desc "current", "Return the current running container ID" def current on(MRSK.hosts) { |host| puts_by_host host, capture_with_info(*MRSK.app.current_container_id) } diff --git a/lib/mrsk/commands/app.rb b/lib/mrsk/commands/app.rb index db36c00a..7e17b0e9 100644 --- a/lib/mrsk/commands/app.rb +++ b/lib/mrsk/commands/app.rb @@ -85,6 +85,10 @@ class Mrsk::Commands::App < Mrsk::Commands::Base docker :container, :prune, "-f", *service_filter end + def list_images + docker :image, :ls, config.repository + end + def remove_images docker :image, :prune, "-a", "-f", *service_filter end