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
• 10,620 points
931 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,700 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 14, 2018 in Docker by Sophie may
• 10,620 points
1,344 views
0 votes
1 answer

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

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

answered Aug 14, 2018 in Docker by Sophie may
• 10,620 points
1,230 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,700 points
769 views
+2 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,700 points
768 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP