lxcfs

FUSE filesystem for LXC (by lxc)

Lxcfs Alternatives

Similar projects and alternatives to lxcfs based on common topics and language

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a better lxcfs alternative or higher similarity.

lxcfs reviews and mentions

Posts with mentions or reviews of lxcfs. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-11-07.
  • Go, Containers, and the Linux Scheduler
    4 projects | news.ycombinator.com | 7 Nov 2023
    > I wondered for a while if docker could make a fake /proc/cpuinfo

    This exists: https://github.com/lxc/lxcfs

    lxcfs is a FUSE filesystem that mocks /proc by inferring cgroup values in a way that makes other applications and libraries work without having to care about whether it runs in a container (to the best of its ability - there are definitely caveats).

    One such example is that /proc/uptime should reflect the uptime of the container, not the host; additionally /proc/cpuinfo reflects the number of CPUs as a combination of cpu.max and cpuset.cpus (whichever the lower bound is).

    As others also mentioned, inferring the number of CPUs could also be done using the sched_getaffinity syscall - this doesn't depend on /proc/cpuinfo, so depending on the library you're using you might be in a pickle.

Stats

Basic lxcfs repo stats
1
997
6.8
23 days ago

lxc/lxcfs is an open source project licensed under GNU General Public License v3.0 or later which is an OSI approved license.

The primary programming language of lxcfs is C.


Sponsored
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com