lib/hitcher/providers/docker/command_builder.rb in Hitcher-0.1.2 vs lib/hitcher/providers/docker/command_builder.rb in Hitcher-0.1.3

- old
+ new

@@ -1,9 +1,9 @@ require_relative '../../global' require 'toolrack' - +require 'etc' require 'ptools' module Hitcher module Docker module CommandBuilder @@ -91,9 +91,12 @@ cmd << "--name #{cname}" end cmd << process_mount(opts) cmd << process_port(opts) + + #userInfo = Etc.getpwnam(Etc.getlogin) + #cmd << "--user #{userInfo.uid}:#{userInfo.gid}" cmd << image if not_empty?(opts[:command]) cmd << "\"#{opts[:command]}\""