arrow_upward

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Docker on OpenVZ
#13
(09-26-2020, 04:47 AM)fChk Wrote: And No!.. the problem is not Cgroups' support in your case, because CGroups are supported starting in Linux kernel 3.10; it's CGroups v2 that are implemented in kernel 4.15. And Docker engine requires CGroups v1 (v2 is still not supported by Docker last time I checked) for its process isolation for the containers it runs.

I had to comeback to this thread to correct and update the information conveyed in quote of mine.

I've said that 'CGroups are supported starting in Linux kernel 3.10' which is factually WRONG!.. As Control groups (cgroups v1) were merged into the Linux kernel since version 2.6.24, around 2007.

So where that kernel 3.10 come from?.. Well it's the absolute minimum kernel version that supports the features that Docker requires to run stable. Although, technically, you can still run Docker on a kernel 2.6.24 with a lot of hacks, exactly what OpenVZ was doing since then..

Same thing for CGroups v2 (aka unified hierarchy):
> CGroups v2 were first merged in kernel 4.5 but enabling cgroup v2 for containers required kernel 4.15 or later.

So basically my mind was focused on specific kernel versions pertaining to Docker support vis-a-vis of CGroups v1 and v2 while talking about CGroups in general in that quote. My mistake!

The other important update to add here is relative to this part of the quote:
(09-26-2020, 04:47 AM)fChk Wrote: (...) And Docker engine requires CGroups v1 (v2 is still not supported by Docker last time I checked) for its process isolation for the containers it runs.
As of Docker version 20.10 support of cgroup v2 and Rootless mode is now added.

Great news for Fedora users which switched to CGroups v2 by default since Fedora 31, released on October 29, 2019!

Since then it was imperative to resort to a hack to run Docker on that system which I've reluctantly done till I decided to migrate my Docker setup inside a KVM VM running CentOS 8 (actually the same VM that I've cloned from my old Phoenix VPS.)
VirMach's Buffalo_VPS-9 Holder (Dec. 20 - July 21)
microLXC's Container Holder (july 20 - ?)
VirMach's Phoenix_VPS-9 Holder (Apr. 20 - June 20)
NanoKVM's NAT-VPS Holder (jan. 20 - ?)


Messages In This Thread
Docker on OpenVZ - by fitkoh - 09-25-2020, 11:46 PM
RE: Docker on OpenVZ - by phoenixwolf - 09-26-2020, 03:37 AM
RE: Docker on OpenVZ - by fChk - 09-26-2020, 04:47 AM
RE: Docker on OpenVZ - by fChk - 06-06-2021, 05:33 AM
RE: Docker on OpenVZ - by Mashiro - 09-26-2020, 07:19 AM
RE: Docker on OpenVZ - by fitkoh - 09-26-2020, 02:57 PM
RE: Docker on OpenVZ - by LightDestory - 09-26-2020, 09:16 PM
RE: Docker on OpenVZ - by fitkoh - 09-26-2020, 10:01 PM
RE: Docker on OpenVZ - by Mashiro - 09-27-2020, 07:59 AM
RE: Docker on OpenVZ - by fChk - 09-27-2020, 06:19 AM
RE: Docker on OpenVZ - by fitkoh - 09-27-2020, 08:32 AM
RE: Docker on OpenVZ - by Mashiro - 09-27-2020, 08:43 AM
RE: Docker on OpenVZ - by fitkoh - 09-28-2020, 04:07 AM

Possibly Related Threads…
Thread
Author
Replies
Views
Last Post
4,506
11-30-2019, 10:36 PM
Last Post: deanhills

person_pin_circle Users browsing this thread: 1 Guest(s)
Sponsors: VirMach - Host4Fun - CubeData - Evolution-Host - HostDare - Hyper Expert - Shadow Hosting - Bladenode - Hostlease - RackNerd - ReadyDedis - Limitless Hosting