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,050 points
104 views

1 answer to this question.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
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,280 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,280 points
39 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,280 points
77 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,280 points
42 views

© 2018 Brain4ce Education Solutions Pvt. Ltd. All rights Reserved.
"PMP®","PMI®", "PMI-ACP®" and "PMBOK®" are registered marks of the Project Management Institute, Inc. MongoDB®, Mongo and the leaf logo are the registered trademarks of MongoDB, Inc.