Skip to content
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

[feature] Use docker images as rootfs #19

Open
antoinemartin opened this issue Jan 14, 2023 · 0 comments
Open

[feature] Use docker images as rootfs #19

antoinemartin opened this issue Jan 14, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@antoinemartin
Copy link
Owner

antoinemartin commented Jan 14, 2023

The documentation already contains a small howto on how to create root fses from docker images (here).

The idea would be to include this directly in Wsl-Manager. There would be benefits:

  • Use of public registries (docker hub, github) to store root filesystems.
  • Ability to 'extend' a root filesystem the same way a new docker image extends an existing one.
  • Use the containers storage as the storage for the root filesystems.
  • docker performs downloads and checks.

Possible scenario (TBD)

The simplest scenario would be the following:

  • Have a minimal distribution including:
    • docker
    • docker buildx
      or
    • BuildKit
    • buildctl

Wsl-Manager would use this distribution to:

  • Pull root fs images
  • Extract rootfs from images
  • Build other root images

The docker version is easier to use because it already bundles buildkit (via an image download?) and containerd. The buildkit version includes containerd.

The tar export from a docker container can be piped directory into wsl --import from WSL:

> docker create --name toexport alpine:latest
> docker export toexport |  wsl.exe --import te $(wslpath -w $(pwd)) -

References

@antoinemartin antoinemartin added the enhancement New feature or request label Jan 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant