Vingo278 / lxcfs

FUSE filesystem for LXC

Home Page:https://linuxcontainers.org/lxcfs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

lxcfs

Introduction

FUSE filesystem for LXC, offering the following features:

  • a cgroupfs compatible view for unprivileged containers
  • a set of cgroup-aware files:
    • cpuinfo
    • meminfo
    • stat
    • uptime

In other words, it will provide an emulated /proc and /sys/fs/cgroup folder for the containers.

Usage

The recommended command to run lxcfs is:

sudo mkdir -p /var/lib/lxcfs
sudo lxcfs /var/lib/lxcfs

In order to use lxcfs with systemd-based containers, you can either use LXC 1.1 in which case it should work automatically, or otherwise, copy the lxc.mount.hook and lxc.reboot.hook files (once built) from this tree to /usr/share/lxcfs, make sure it is executable, then add the following lines to your container configuration:

lxc.mount.auto = cgroup:mixed
lxc.autodev = 1
lxc.kmsg = 0
lxc.include = /usr/share/lxc/config/common.conf.d/00-lxcfs.conf

About

FUSE filesystem for LXC

https://linuxcontainers.org/lxcfs

License:Apache License 2.0


Languages

Language:C 87.4%Language:Shell 6.4%Language:M4 4.5%Language:Makefile 1.7%