Giter VIP home page Giter VIP logo

Comments (6)

spurin avatar spurin commented on July 28, 2024 1

Hi @yokodev

At the moment I don't have a way of making the lab images work for both cgroups v1 and v2 unfortunately, it is an area I'm looking into.

This post gives some more context on the difficulties (the lab images, use systemd to emulate a real system) -

https://serverfault.com/questions/1053187/systemd-fails-to-run-in-a-docker-container-when-using-cgroupv2-cgroupns-priva

After doing the course, you could revert the settings if desired to put this back as it was 👍

from diveintoansible-lab.

spurin avatar spurin commented on July 28, 2024

Hi @yokodev

This is related to this Linux version having cgroups v2 instead of v1, it affects Docker and Kubernetes. Fedora is more of a bleeding edge release so sometimes these kind of issues arise before they're widely adopted and resolved.

If you revert to cgroup v1 using the following commands, you'll be good to go -

sudo dnf install grubby

sudo grubby --update-kernel=ALL --args="systemd.unified_cgroup_hierarchy=0"

Then, reboot

Best Regards

James Spurin

from diveintoansible-lab.

yokodev avatar yokodev commented on July 28, 2024

Thanks for the quick reply... Is there any other way of doing this? I'm not sure I want to downgrade the Cgroups.
I was reading about it and apparently, it brings some good stuff to the table... Please Advice

from diveintoansible-lab.

jurcaga avatar jurcaga commented on July 28, 2024

Hello, I am having the same issue but on Arch Linux. I already edited GRUB to start with systemd.unified_cgroup_hierarchy=0.

[aquinas@cave diveintoansible-lab]$ cat /proc/cmdline BOOT_IMAGE=/vmlinuz-linux root=UUID=ef929d12-55e4-4d64-bc41-41f4239bda4f rw loglevel=3 quiet systemd.unified_cgroup_hierarchy=0

EDIT: it works now :) all I had to do was run docker-compose rm and then docker-compose up

from diveintoansible-lab.

spurin avatar spurin commented on July 28, 2024

Hi,

With the system booted, what's the output you have when running mount please?

Thanks

James

from diveintoansible-lab.

spurin avatar spurin commented on July 28, 2024

Ahh perfect! I replied without seeing the edit, glad it's all working for you!

from diveintoansible-lab.

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.