Giter Site home page Giter Site logo

podman fedora 31 wsl 2 about fedora-remix-for-wsl HOT 16 CLOSED

 avatar commented on June 1, 2024 3
podman fedora 31 wsl 2

from fedora-remix-for-wsl.

Comments (16)

christianh814 avatar christianh814 commented on June 1, 2024 8

I was able to get podman to work (rootless and rootful) on Feodra 33 WSL2, following these two articles:

https://fedoramagazine.org/wsl-fedora-33/
https://dev.to/bowmanjd/using-podman-on-windows-subsystem-for-linux-wsl-58ji

from fedora-remix-for-wsl.

thoraxe avatar thoraxe commented on June 1, 2024 1

Hi there --

I'm also experiencing this issue. Can you let me know if there's anything I can do to help troubleshoot, @crramirez ?

from fedora-remix-for-wsl.

crramirez avatar crramirez commented on June 1, 2024 1

Excellent thanks a lot. We will test this approach and make a how-to guide

from fedora-remix-for-wsl.

gbraad avatar gbraad commented on June 1, 2024 1

Recent versions of Podman, on F33 can run with the following commands:

containers/podman#3288 (comment)

$ sudo -i
$ cp /usr/share/containers/containers.conf /etc/containers/containers.conf && \
 sed -i '/^# cgroup_manager = "systemd"/ a cgroup_manager = "cgroupfs"' /etc/containers/containers.conf && \
 sed -i '/^# events_logger = "journald"/ a events_logger = "file"' /etc/containers/containers.conf
$ dnf reinstall -y shadow-utils

Now podman should work without issues

from fedora-remix-for-wsl.

jpeeler avatar jpeeler commented on June 1, 2024 1

Neat, I'm glad you commented here. I was having some difficulties due to what appears to be a truncated socket path:

$ podman run -it docker.io/library/alpine:latest /bin/sh
Error: failed to connect to container's attach socket: /tmp/jpeeler-runtime/libpod/tmp/socket/8763c0add8b1c2af5cb9bff38d22e6273af08e4149ed1d574ad31ef3319c94f0/att: dial unixpacket /tmp/jpeeler-runtime/libpod/tmp/socket/8763c0add8b1c2af5cb9bff38d22e6273af08e4149ed1d574ad31ef3319c94f0/att: connect: no such file or directory

I believe this is the fix, but it's only present in podman 3, which seems to only be in the testing repo currently. But if anybody else sees the same thing, hopefully an upgrade fixes the issue like it did for me:

sudo dnf --enablerepo=updates-testing update podman

from fedora-remix-for-wsl.

christianh814 avatar christianh814 commented on June 1, 2024 1

Actually, we should keep this open until it's properly documented.

from fedora-remix-for-wsl.

returntrip avatar returntrip commented on June 1, 2024 1

I think this can be closed. I can run podman, toolbox, distrobox on fedoraremix37

[returntrip]W5CG2241T4G in [⛵tc4-02-admin@tc4-02]~ as 🧙
❯❯ toolbox enter fedora-toolbox-37
bash: starship: command not found
⬢[returntrip@toolbox ~]$ cat /etc/os-release
NAME="Fedora Linux"
VERSION="37 (Container Image)"
ID=fedora
VERSION_ID=37
VERSION_CODENAME=""
PLATFORM_ID="platform:f37"
PRETTY_NAME="Fedora Linux 37 (Container Image)"
ANSI_COLOR="0;38;2;60;110;180"
LOGO=fedora-logo-icon
CPE_NAME="cpe:/o:fedoraproject:fedora:37"
DEFAULT_HOSTNAME="fedora"
HOME_URL="https://fedoraproject.org/"
DOCUMENTATION_URL="https://docs.fedoraproject.org/en-US/fedora/f37/system-administrators-guide/"
SUPPORT_URL="https://ask.fedoraproject.org/"
BUG_REPORT_URL="https://bugzilla.redhat.com/"
REDHAT_BUGZILLA_PRODUCT="Fedora"
REDHAT_BUGZILLA_PRODUCT_VERSION=37
REDHAT_SUPPORT_PRODUCT="Fedora"
REDHAT_SUPPORT_PRODUCT_VERSION=37
SUPPORT_END=2023-11-14
VARIANT="Container Image"
VARIANT_ID=container
⬢[returntrip@toolbox ~]$ exit
[ble: exit]

[returntrip]W5CG2241T4G in [⛵tc4-02-admin@tc4-02]~ as 🧙 [⏱ 10s]
❯❯ cat /etc/os-release
NAME="Fedora Remix for WSL"
VERSION="37"
ID=fedoraremixforwsl
ID_LIKE=fedora
VERSION_ID=37
PLATFORM_ID="platform:f37"
PRETTY_NAME="Fedora Remix for WSL"
ANSI_COLOR="0;34"
CPE_NAME="cpe:/o:fedoraproject:fedora:37"
HOME_URL="https://github.com/WhitewaterFoundry/Fedora-Remix-for-WSL"
SUPPORT_URL="https://github.com/WhitewaterFoundry/Fedora-Remix-for-WSL"
BUG_REPORT_URL="https://github.com/WhitewaterFoundry/Fedora-Remix-for-WSL/issues"
PRIVACY_POLICY_URL="https://github.com/WhitewaterFoundry/Fedora-Remix-for-WSL/blob/master/PRIVACY.md"
FEDORA_REMIX_VERSION=37.0.2

from fedora-remix-for-wsl.

crramirez avatar crramirez commented on June 1, 2024

OK we will check.

Thank you for reporting

from fedora-remix-for-wsl.

crramirez avatar crramirez commented on June 1, 2024

Hello,

Run this script sudo sed -i 's/^\(NAME=\)\(.*\)$/\1"\2"/' /usr/lib/os-release .

This will fix the os-release problem.

Although as I saw podman is something that works with containers and systemd. This unlikely will work with WSL1. I did some tests with WSL 2 and looks better but still have problems with dbus.

Later this week I can investigate it further to see if we can make it run on WSL.

Regards,
Carlos

from fedora-remix-for-wsl.

crramirez avatar crramirez commented on June 1, 2024

We haven't been able to run it WSL2 still. We'll keep you informed

from fedora-remix-for-wsl.

jpeeler avatar jpeeler commented on June 1, 2024

This should be helpful: https://www.redhat.com/sysadmin/podman-windows-wsl2 (just follow the libpod.conf part)

For toolbox, XDG_RUNTIME_DIR is not set and the directory doesn't exist:

export XDG_RUNTIME_DIR=/run/user/1000
mkdir /run/user/1000
chown <user>:<user> /run/user/1000

I modified toolbox (it's a bash script for now) to not execute gdbus. That got me as far as toolbox create trying to execute podman, but failing with a return code of 125. I didn't try to debug this massive command line, but hopefully all this helps you get really close: https://github.com/containers/toolbox/blob/7b460e390d7e5f8a90038c9d0f03a56dc622bd1c/toolbox#L1078.

from fedora-remix-for-wsl.

gbraad avatar gbraad commented on June 1, 2024

@jpeeler I am at the moment not using Podman 3.0; as I am focused on our build on the EL8 platform. So at the moment not much in a hurry to enable this on Fedora. But will certainly enable/update this when the need is there.

from fedora-remix-for-wsl.

gbraad avatar gbraad commented on June 1, 2024

I think this can be closed. Besides F31 is EOL since 2020-11-24 anyway. /cc: @ghost
If issues exist with any newer release filing a new issue would be a better idea.

from fedora-remix-for-wsl.

gbraad avatar gbraad commented on June 1, 2024

In that case please modify the title, as this is not indicative of the intent

from fedora-remix-for-wsl.

anthr76 avatar anthr76 commented on June 1, 2024

I see dbus is installed but I don't have XDG_* vars. I'm also trying to use toolbox and podman

from fedora-remix-for-wsl.

crramirez avatar crramirez commented on June 1, 2024

Excellent. Thank you for testing and telling us

from fedora-remix-for-wsl.

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.