Docker for Windows Error: Open cmd executing docker machine env

+1 vote

I'm using Docker For Windows which runs on the Hyper-V.

Every time I open a new CMD, I must run "docker-machine env" command and define variables for shell

This is the command response :

REM Run this command to configure your shell:
REM     @FOR /f "tokens=*" %i IN ('docker-machine env') DO @%i

Is there a shortcut for opening CMD executing this command?

Nov 12, 2018 in Docker by Sophie may
• 9,850 points
84 views

1 answer to this question.

0 votes

You can put the commands in:

Shortcut Properties > target

This works for me.

answered Nov 12, 2018 by Tyrion anex
• 8,270 points

Related Questions In Docker

0 votes
1 answer

Error: Docker for Windows not working

The following worked for me: Download VirtualBox 5.03  Reboot ...READ MORE

answered Aug 13, 2018 in Docker by Sophie may
• 9,850 points
92 views
0 votes
1 answer

Error: “Docker for Windows: No hypervisor is present”

I faced the same error and this ...READ MORE

answered Aug 13, 2018 in Docker by Sophie may
• 9,850 points
77 views
0 votes
1 answer

Docker For Windows error: network adapters down

For testing, you can use the alternative ...READ MORE

answered Sep 24, 2018 in Docker by Tyrion anex
• 8,270 points
30 views
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer

Error: Docker for windows failing to start

I got the same error, just follow ...READ MORE

answered Sep 4, 2018 in Docker by Tyrion anex
• 8,270 points
31 views