]> git.proxmox.com Git - mirror_lxcfs.git/blame - README.md
Update README
[mirror_lxcfs.git] / README.md
CommitLineData
60f73aff
SG
1# lxcfs
2
c397924a 3## Introduction
60f73aff
SG
4FUSE filesystem for LXC, offering the following features:
5 - a cgroupfs compatible view for unprivileged containers
6 - a set of cgroup-aware files:
7 - cpuinfo
8 - meminfo
9 - stat
10 - uptime
758ad80c 11
c397924a 12## Usage
758ad80c
SH
13The recommended command to run lxcfs is:
14
c397924a
SG
15 sudo mkdir -p /var/lib/lxcfs
16 sudo lxcfs -s -f -o allow_other /var/lib/lxcfs
758ad80c 17
c397924a
SG
18 - -s is required to turn off multi-threading as libnih-dbus isn't thread safe.
19 - -f is to keep lxcfs running in the foreground
20 - -o allow\_other is required to have non-root user be able to access the filesystem
21 - -d can also be passed in order to debug lxcfs
ef65395d 22
7456f3b5
SG
23
24In order to use lxcfs with systemd-based containers, you can either use
25LXC 1.1 in which case it should work automatically, or otherwise, copy
1a188fcb
SG
26the lxc.mount.hook file (once built) from this tree to
27/usr/share/lxc/hooks/lxcfs, make sure it is executable, then add the
28following two lines to your container configuration:
ef65395d 29
1a188fcb 30lxc.autodev = 1
ef65395d 31lxc.kmsg = 0
7456f3b5 32lxc.include = /usr/share/lxcfs/00-lxc.conf