Remove images of the same name before pulling a new one

Or you'll end up with untagged dupes.
This commit is contained in:
David Heinemeier Hansson
2023-02-20 18:06:16 +01:00
parent 9d6ccf9889
commit 42b343436d
4 changed files with 21 additions and 1 deletions

View File

@@ -1,6 +1,10 @@
class Mrsk::Commands::Builder::Base < Mrsk::Commands::Base
delegate :argumentize, to: Mrsk::Utils
def clean
docker :image, :rm, "--force", config.absolute_image
end
def pull
docker :pull, config.absolute_image
end