Commit 26ae17f8 authored by Marcus Pedersén's avatar Marcus Pedersén
Browse files

Added README file

parent c61ab40a
......@@ -8,7 +8,7 @@ checksum = "afddf7f520a80dbf76e6f50a35bca42a2331ef227a28b3b6dc5c2e2338d114b1"
[[package]]
name = "lxc-limit"
version = "0.1.0"
version = "1.0.0"
dependencies = [
"anyhow",
]
# 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
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment