lib/dockly/build_cache/docker.rb in dockly-3.4.1 vs lib/dockly/build_cache/docker.rb in dockly-4.0.0

- old
+ new

@@ -75,10 +75,10 @@ file = File.open(file_path, 'w+b') container.wait(3600) # 1 hour max timeout debug 'Restarting the container to copy the cache\'s output' # Restart the container so we can copy its output container = container.commit.run('sleep 3600') - container.copy(output_directory) { |chunk| file.write(chunk.to_s) } + container.archive_out(output_directory) { |chunk| file.write(chunk.to_s) } container.kill file.tap(&:rewind) end def hash_output