linecook-gem 0.7.0 → 0.7.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/linecook-gem/baker/docker.rb +8 -2
- data/lib/linecook-gem/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 41f0ef28f092f4900a10da5a13ec5f4994413e95
|
4
|
+
data.tar.gz: 08cd2671ae59f15d34b4694cb32bf02404338494
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1de320f3f6916ab1897c7c4e7bc826ca4761b08638b772e8b88e0e6688cd08641600b2f71016699596a90e48773b5368f82cdd8da94ccc8905cde7e610a23316
|
7
|
+
data.tar.gz: 94328e65a381bd63c0bba48b98a9631244c71618ddd915c3946c95ba411a3d55606268601e3fa10e050a30524ebbe50492b9bad8ba0bcd69e63077b037817471
|
@@ -73,8 +73,14 @@ module Linecook
|
|
73
73
|
def clean_older_images(image)
|
74
74
|
puts "Cleaning up older images for #{image.group}..."
|
75
75
|
older_images(image).each do |old|
|
76
|
-
|
77
|
-
|
76
|
+
id = old.info['RepoTags'].first
|
77
|
+
puts "Removing #{id}"
|
78
|
+
begin
|
79
|
+
old.remove(force: true)
|
80
|
+
rescue Docker::Error::ConflictError => e
|
81
|
+
puts "Failed to remove #{id}"
|
82
|
+
puts e.message
|
83
|
+
end
|
78
84
|
end
|
79
85
|
end
|
80
86
|
|
data/lib/linecook-gem/version.rb
CHANGED