 
     mounts = Enum.join(mounts(pkg), " ")
     ssh_agent = Enum.join(ssh_agent(), " ")
+    env_vars = Enum.join(env(), " ")
 
     cmd =
-      "docker run --rm -it --user #{uid()}:#{gid()} -w #{@working_dir} #{mounts} #{ssh_agent} #{
-        image
-      }"
+      "docker run --rm -it -w #{@working_dir} #{env_vars} #{mounts} #{ssh_agent} #{image} /bin/bash"
 
     set_volume_permissions(pkg)
+
     Mix.Nerves.Shell.open(cmd, initial_input)
   end
 

        #{inspect(result)}
        """)
    end
  end

  defp uid() do

        "-a",
        "stdout",
        "-a",
        "stderr"
      ] ++ env() ++ mounts(pkg) ++ ssh_agent() ++ [image | cmd]

    case Mix.Nerves.Utils.shell("docker", args, stream: stream) do
      {_result, 0} ->
