Code Monkey home page Code Monkey logo

Comments (2)

ntrappe-msft avatar ntrappe-msft commented on June 11, 2024 2

Hi, thanks for raising this Issue. I believe you're asking why the command Get-Volume is failing on a Docker volume. When you create a Docker volume (e.g., docker create <vol-name>), that volume isn't actually managed by your host operating system. Instead, that volume is created inside the Docker VM.

If you do docker volume inspect <vol-name>, it'll probably show that the mountpoint is at C:\ProgramData\Docker\volumes. However, if you open up File Explorer and try to navigate to that path, it won't let you. That's because the volumes folder is living inside the Docker VM.

Commands like Get-Volume won't work because your host file system isn't managing that volume so it can't provide any details because it doesn't even have access to it. This is actually intentional because Docker wants to streamline the management of these volumes. Similarly, they don't provide a lot of options for gathering data about the volume such as sector size.

If there's specific info you need about your Docker volume, let us know and we can try to explore a workaround (if it's possible). Otherwise, this is by design and not a bug.

from windows-containers.

david-garcia-garcia avatar david-garcia-garcia commented on June 11, 2024

@ntrappe-msft I am not conviced about the result of the analysis / explanation.

[..] Get-Volume is failing on a Docker volume. When you create a Docker volume (e.g., docker create <vol-name>), that volume isn't actually managed by your host operating system. Instead, that volume is created inside the Docker VM.

The results I am showing are when running the commands inside a Windows container in a Windows node in a managed AKS cluster. So there is no Docker VM, or even docker involved. Indeed, there is no virtualization involved because this is a windows node with windows container, so pure containers + containerd + kubelet.

This logs if from Microsft SQL Server when running in a windows container in the aformementioned scenario:

[00:07:29] [System:MSSQLSERVER] Error The operating system returned the error '144(The directory is not a subdirectory of the root directory.)' while attempting 'GetVolumeInformation' on 'g:\data\' at 'storagedmv.cpp'(468). 

Get-Volume is failing in this case on an Azure Disk mounted volumen, when called from within the container. I believe the CSI disk driver (https://github.com/kubernetes-sigs/azuredisk-csi-driver) attaches the network disk to the host, and then loops that to a volume .

from windows-containers.

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.