lib/vocker/docker_client.rb in vocker-0.2.1 vs lib/vocker/docker_client.rb in vocker-0.3.0

- old
+ new

@@ -48,12 +48,14 @@ def start_container(id) @machine.communicate.sudo("docker start #{id}") end def create_container(config) + args = "-cidfile=#{config[:cidfile]} -d" + args << " -dns=#{config[:dns]}" if config[:dns] @machine.communicate.sudo %[ rm -f #{config[:cidfile]} - docker run -cidfile=#{config[:cidfile]} -d #{config[:image]} #{config[:cmd]} + docker run #{args} #{config[:image]} #{config[:cmd]} ] end end end end