python - Windows docker-machine adding ssh.exe to PATH -
according docker-machine documentation installation on windows, need run following command add ssh.exe
%path%
environment variable:
set path=%path%;"c:\program files (x86)\git\bin"
this cmd.exe
can recognize docker-machine
command. however, running above command doesn't seem @ all. same thing happens when try in powershell:
$env:path = "${env:path};c:\program files (x86)\git\bin"
which say, apparently nothing @ all. goal make docker-machine
recognizable command in cmd.exe
. because have python script set docker-machine
vm , script needs able run in cmd.exe
. how can done? it's important not go advanced system settings computer , modify environment variables way, since requires admin privileges , setup needs work without sort of admin privileges.
it's important not go advanced system settings computer , modify environment variables way, since requires admin privileges , setup needs work without sort of admin privileges.
a non-admin user can set environment variables affect profile (as opposed entire machine). see answer how access environment variables dialog directly without having go through advanced system settings dialog.
from here, can set path
in user variables list. note that, when using method, don't need include existing path (i.e. %path%
) did above. value enter in user variables list appended current system value path
.
also, don't forget after setting environment variable using method, existing cmd
instances not see new value path
-- must open new cmd
instance.
Comments
Post a Comment