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
• 10,100 points
937 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,550 points

Related Questions In DevOps & Agile

+3 votes
2 answers
0 votes
2 answers

How does Docker for Windows run Linux containers?

One of the most important enhancements is ...READ MORE

answered Aug 29 in DevOps & Agile by Pistle
• 1,000 points
144 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,550 points
193 views
+2 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,550 points
133 views