What is the docker for windows command for “-v /var/run/docker.sock:/var/run/docker.sock”?

0 votes

My aim is to control the host docker service from within a container.

By using Linux host and Linux container it is done like this: 

docker run -it -v /var/run/docker.sock:/var/run/docker.sock alpine

But now I’m using Docker for Windows and I want to do the same thing. Any help would be appreciated. 

Thanks in advance.

Dec 3, 2018 in DevOps & Agile by Sophie may
• 9,850 points
330 views

1 answer to this question.

0 votes
Switch to Linux containers using Docker for Windows if you’re using windows containers. It works only when you’re using a linux container.
answered Dec 3, 2018 by Tyrion anex
• 8,270 points

Related Questions In DevOps & Agile

+3 votes
2 answers
0 votes
1 answer

How does Docker for Windows run Linux containers?

Docker for Windows still uses a Linux ...READ MORE

answered Aug 24, 2018 in DevOps & Agile by Tyrion anex
• 8,270 points
58 views
0 votes
1 answer

How to a run deployed app in Docker for Windows?

To deploy an ASP.NET web application to ...READ MORE

answered Aug 29, 2018 in DevOps & Agile by Tyrion anex
• 8,270 points
121 views
0 votes
1 answer
0 votes
1 answer
0 votes
3 answers
0 votes
1 answer
0 votes
1 answer

How can a script identify the difference between Docker Toolbox and Docker for Windows?

Now, the Toolbox works through docker-machine. The way ...READ MORE

answered Aug 24, 2018 in DevOps & Agile by Tyrion anex
• 8,270 points
63 views