README.md 1.57 KB
Newer Older
Marcus Pedersén's avatar
Marcus Pedersén committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# lxc-limit

lxc-limit -  List limits on running containers

List limits and status info on running containers to stdout.

For help use -h or --help:  
```
Usage: lxc-limit [OPTION]
List limits on running containers.

Columns in list:
  NAME:              Name of container
  STATE:             Running, Stopped or Unknown
  CPUS:              Which CPUs that are assingned to the container
                     Can be one single CPU: 0 or a range: 3-8
                     or a list of CPUs: 1,2,3-5,7,9
  LOADAVG:           System load average for the past 1 minute.
  MEMORY LIMIT:      Available RAM memory for container.
  MEMORY SWAP LIMIT: Available total memory for container. RAM + SWAP
  MEMORY USAGE:      Amount of memory used now.

Options:
   no args           List available limits for all containers
                     on this host
   -h, --help        Print this help text and exit
   --version         Output version information and exit
```

## Installation
### Linux:
- Download file: lxc-limit-x.x.x-linux-x86_64
- Rename it to lxc-limit and move it to /usr/bin/lxc-limit
- Download file: lxc-limit-x.x.x-man.1.gz
- Rename it to lxc-limit.1.gz and move it to /usr/share/man/man1/lxc-limit.1.gz  

Now you can use lxc-limit by just writing **lxc-limit** in your terminal and to view man page: **man lxc-limit**

### Debian package installation amd64
Find the latest release at:  
```
https://projects.interbull.org/marcus/lxc-limit/-/releases
```
* Download the debian package: lxc-lmimit_x.x.x-x_amd64.deb
* Install with: apt install /path/to/deb/package/lxc-limit_x.x.x-x_amd64.deb