-
Notifications
You must be signed in to change notification settings - Fork 2k
Invalid command to connect Windows Command Prompt #3023
Comments
There are a couple of changes recently on this. Does the issue comes out with 0.6.0 version ? |
After the upgrade, when I executed
|
Its on |
Ouch, an You should probably clean that up ( in docker-machine and virtualbox ), and instead of launching Docker QuickStart, runs |
I had to do a whole lot of clean up. Uninstalled Docker Toolbox and VirtualBox, deleted cleaned up temp dirs and deleted .docker directory. Reinstalled Docker Toolbox and Docker is running fine now. Luckily I had no important stuff in Windows installation
and when I execute
It still returns |
@raeesiqbal your current shell is Does the output of |
cc @StefanScherer please take a look at this and let us know if you can dupe! |
@raeesiqbal Are you running the FOR loop interactively or in a Batch script? Using a
everything works well:
But using this FOR loop
The problem is that in a
works.
But we can't just add the second
PS: With docker-machine 0.6.0 you can normally skip the
|
Yes, my current shell is |
@raeesiqbal Don't know. I have tested a small batch script and a shortcut as follows: Shortcut target: setenv.bat:
Opening the CMD shell works fine and using docker works. What is your setup? |
Ah.... found the problem. It worked just fine for me when executed after the IF DEFINED DOCKER_MACHINE_EXECUTING (GOTO :eod)
set DOCKER_MACHINE_EXECUTING=1
:configureDocker
FOR /f "tokens=*" %%i IN ('docker-machine env default') DO %%i
:eod |
@StefanScherer and @jeanlaurent thank you so much for your time. |
I like to use
That way I can do setenv (will be default) etc |
It works for me thanks ... |
Using Docker Machine
docker-machine version 0.5.6, build 61388e9
on Windows 10 x64.The command returned by
docker-machine env --shell cmd default
isBut if I execute the last one
It returns an error
i was unexpected at this time.
. Which means that the FOR loop is not valid.The text was updated successfully, but these errors were encountered: