lib/kitchen/driver/docker.rb in kitchen-docker-0.12.0 vs lib/kitchen/driver/docker.rb in kitchen-docker-0.13.0
- old
+ new
@@ -27,10 +27,11 @@
class Docker < Kitchen::Driver::SSHBase
default_config :socket, nil
default_config :privileged, false
default_config :remove_images, false
+ default_config :run_command, '/usr/sbin/sshd -D -o UseDNS=no -o UsePAM=no'
default_config :username, 'kitchen'
default_config :password, 'kitchen'
default_config :use_sudo do |driver|
!driver.remote_socket?
@@ -159,10 +160,10 @@
Array(config[:volume]).each {|volume| cmd << " -v #{volume}"}
cmd << " -h #{config[:hostname]}" if config[:hostname]
cmd << " -m #{config[:memory]}" if config[:memory]
cmd << " -c #{config[:cpu]}" if config[:cpu]
cmd << " -privileged" if config[:privileged]
- cmd << " #{image_id} /usr/sbin/sshd -D -o UseDNS=no -o UsePAM=no"
+ cmd << " #{image_id} #{config[:run_command]}"
cmd
end
def run_container(state)
cmd = build_run_command(state[:image_id])