Skip to content

Commit

Permalink
Fix #29: use docker cp to upload files
Browse files Browse the repository at this point in the history
  • Loading branch information
Samuel Bernard committed May 3, 2016
1 parent fdd7508 commit 14b187e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/kitchen/transport/docker_cli.rb
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ def upload(locals, remote)
if @options[:lxc_driver]
remote_cmd = "#{lxc_attach_base} #{lxc_exec_command(@options[:container_id], remote_cmd)}"
else
remote_cmd = "#{docker_base} #{docker_exec_command(@options[:container_id], remote_cmd, :interactive => true)}"
remote_cmd = "#{docker_base} cp - #{@options[:container_id]}:#{remote}"
end
local_cmd = "cd #{File.dirname(local)} && tar cf - ./#{File.basename(local)}"
run_command("#{local_cmd} | #{remote_cmd}")
Expand Down

0 comments on commit 14b187e

Please sign in to comment.