Docker for windows: Eval command not found

0 votes

Eval command does not exist in Windows.

How do I run this command on Docker for Windows?

C:\Users\mary> eval "$(docker-machine env my-default)"

I can run this command just fine from Git Bash but I'm curious why the Docker tutorial says to run this command from the Windows command prompt.

Oct 1, 2018 in Docker by Sophie may
• 9,870 points
890 views

1 answer to this question.

0 votes

Follow the below commands to configure your shell terminal:

docker-machine env --shell cmd my-default
FOR /f "tokens=*" %i IN ('docker-machine env --shell cmd my-default') DO %i

After successfully running the above commands you can run any docker command from the shell/cmd terminal.

answered Oct 1, 2018 by Tyrion anex
• 8,310 points

Related Questions In Docker

0 votes
3 answers

Error: docker command not found

If you're using Docker as an administrator, ...READ MORE

answered Apr 29 in Docker by Naina
2,526 views
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,870 points
108 views
0 votes
1 answer
0 votes
1 answer

Error: docker-machine command not found

Hey @Ruby, You can indeed spin-up multiple ...READ MORE

answered Jul 4 in Docker by Sirajul
• 40,980 points
424 views
0 votes
1 answer
0 votes
1 answer

Deploy Docker Containers from Docker Cloud

To solve this problem, I followed advice ...READ MORE

answered Sep 3, 2018 in AWS by Priyaj
• 56,960 points
251 views