Code Monkey home page Code Monkey logo

Comments (2)

AnthonyMastrean avatar AnthonyMastrean commented on May 21, 2024

I had the same problem just tonight! I tried sharing the Windows docker binary, but that doesn't make much sense (as this image is some kind of Linux).

PS> docker run --rm -it `
>>     -v /var/run/docker.sock:/var/run/docker.sock `
>>     -v "$((Get-Command -Name docker).Source):/bin/docker" `
>>     wagoodman/dive alpine

So, I figured docker must be in the MobyLinuxVM that's running under-the-covers, right? Apparently the latest Docker for Windows can figure out when you want to pass a VM path vs. a Windows path (you previously had to use an extra forward slash to escape it or something).

PS> docker run --rm -it `
>>    -v /:/test `
>>    alpine find /test -name docker -type f
/test/user/local/bin/docker
...

OK, so it's in there, we can use it! This command worked on my machine!

PS> docker run --rm -it `
>>     -v /var/run/docker.sock:/var/run/docker.sock `
>>     -v /usr/local/bin/docker:/bin/docker `
>>     wagoodman/dive alpine

image

from dive.

wagoodman avatar wagoodman commented on May 21, 2024

@AnthonyMastrean thanks for taking a look at this, I don't have a windows box readily available so this is a huge help.

from dive.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.