From 028f69d8260354ad2bfaebf8a1fa6e4df11411f3 Mon Sep 17 00:00:00 2001 From: Kenichi Kamiya Date: Fri, 12 Apr 2024 01:42:35 +0900 Subject: [PATCH] Add note how to mount project volumes in podman-remote and multiple WSL2 instances --- config/windows/README.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/config/windows/README.md b/config/windows/README.md index c4392d6a..af1e3d07 100644 --- a/config/windows/README.md +++ b/config/windows/README.md @@ -248,6 +248,17 @@ winget install --exact --id RedHat.Podman-Desktop And create the new podman-machine-default +## How mount project volumes in podman-remote + +Track the [official discussion](https://github.com/containers/podman/discussions/13537), but there are no simple solutions for now.\ +This repository provides a mount based solution, mount from another instance as /mnt/wsl/..., then podman-machine also can access there. + +1. Ubuntu: Activate the home-manager with `--flake .#wsl`. +2. Look the [definitions](../../home-manager/wsl.nix), it includes how to mount with systemd. +3. podman-machine: Make sure podman-machine can read there `ls /mnt/wsl/instances/ubuntu22/home` +4. Ubuntu: `cdg project_path` +5. Ubuntu: `podman run -v /mnt/wsl/instances/ubuntu22/"$(pwd)":/workdir -it ghcr.io/ruby/ruby:master-dev-76732b3e7b42d23290cd96cd695b2373172c8a43-jammy` + ## How SSH login to podman-machine from another WSL instance like default Ubuntu? ### WSL - Ubuntu