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 4, 2018 in DevOps & Agile by Sophie may
• 10,620 points
2,212 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 4, 2018 by Tyrion anex
• 8,700 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, 2020 in DevOps & Agile by Pistle
• 1,000 points
1,126 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 30, 2018 in DevOps & Agile by Tyrion anex
• 8,700 points
1,228 views
+2 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,700 points
847 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