Module: Kamal::Commands::App::Images

Included in:
Kamal::Commands::App
Defined in:
lib/kamal/commands/app/images.rb

Instance Method Summary collapse

Instance Method Details

#list_imagesObject



2
3
4
# File 'lib/kamal/commands/app/images.rb', line 2

def list_images
  docker :image, :ls, config.repository
end

#remove_imagesObject



6
7
8
# File 'lib/kamal/commands/app/images.rb', line 6

def remove_images
  docker :image, :prune, "--all", "--force", *filter_args
end

#tag_latest_imageObject



10
11
12
# File 'lib/kamal/commands/app/images.rb', line 10

def tag_latest_image
  docker :tag, config.absolute_image, config.latest_image
end