-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
podman does not support Windows Subsystem for Linux lxfs with overlay driver #3000
Comments
I have no idea if this would work period, but container/storage underneath podman is attempting to setup Overlay on this underlying file system and it finds that Overlay is not supported by the kernel on that file system there is little we can do. You could try to use the VFS storage driver to see if this works. |
My suspicion is that Windows doesn't implement a lot of the namespace-related functionality of the Linux kernel, so I suspect that we won't actually be able to launch containers, even if we can get storage configured. |
@rhatdan Overlay fs does work as I showed in the example shell output. However, I wanted to know what's mount options you use to check such that the overlay is not available? At least Docker daemon does work and run containers under WSL (see microsoft/WSL#2291 (comment)) except some networking feature due to missing iptables calls so I think it has all the namespace-related functionality available. It would be very useful for Enterprise developer where they only have Windows available. |
I stand corrected. That's actually damn impressive. It's possible that we have a kernel version check in c/storage somewhere that's tripping because of the output of WSL? |
This is what I see in the podman info debug output:
Is there anyway to know what "mount" command it is trying to execute? |
I have scanned the code for the error message and it looks like it is in the storage component - so I have create an issue there for tracking. |
the overlay you've showed here is using only one lower layer. Could you try to mount overlay using multiple lower layers (e.g. |
@sunnychanwork had a chance to try my suggestion? |
Yes it does work: |
This should be fixed in libpod 1.3.0 or later, by way of its inclusion of containers/storage 1.12.5 or later, which fixed containers/storage#327. |
@sunnychanwork Are you still looking at this? I was wondering if current master is any better. We are working on cutting a podman 1.5.0 right now, it would be nice to see if it works on MS. |
@rhatdan Microsoft since had a change of heart and announced WSL2 which runs Linux under a VM in Windows - so I didn't spend any more time looking at this for now |
I took look at this issue. The filesystem issue seems to be fixed. Though error are for We can close this issue.
|
Just FYI, WSL1 doesn't work with systemd and therefore jorunald is not installed by default. |
Is this a BUG REPORT or FEATURE REQUEST? (leave only one on its own line)
/kind bug
Description
Steps to reproduce the issue:
Install ubuntu on Windows Subsystem for Linux
Run "podman info --log-leve=debug"
Describe the results you received:
DEBU[0000] Initializing boltdb state at /var/lib/containers/storage/libpod/bolt_state.db
DEBU[0000] Using graph driver overlay
DEBU[0000] Using graph root /var/lib/containers/storage
DEBU[0000] Using run root /var/run/containers/storage
DEBU[0000] Using static dir /var/lib/containers/storage/libpod
DEBU[0000] Using tmp dir /var/run/libpod
DEBU[0000] Using volume path /var/lib/containers/storage/volumes
DEBU[0000] Set libpod namespace to ""
DEBU[0000] [graphdriver] trying provided driver "overlay"
DEBU[0000] overlay test mount with multiple lowers failed mountfrom re-exec error: exit status 1: output: invalid argument
DEBU[0000] overlay test mount with a single lower failed mountfrom re-exec error: exit status 1: output: invalid argument
ERRO[0000] 'overlay' is not supported over at "/var/lib/containers/storage/overlay"
ERRO[0000] could not get runtime: kernel does not support overlay fs: 'overlay' is not supported over at "/var/lib/containers/storage/overlay": backing file system is unsupported for this graph driver
Describe the results you expected:
Additional information you deem important (e.g. issue happens only occasionally):
Windows Subsystem for Linux's lxfs does support overlay:
Output of
podman version
:Version: 1.3.0-dev
RemoteAPI Version: 1
Go Version: go1.10.4
OS/Arch: linux/amd64
Output of
podman info --debug
:As above
Additional environment details (AWS, VirtualBox, physical, etc.):
Using Windows Subsystem for Linux (17134)
The text was updated successfully, but these errors were encountered: