]> git.proxmox.com Git - pve-container.git/commitdiff
Enhance pct man page with DESCRIPTION, EXAMPLES, FILES, SEE ALSO sections
authorEmmanuel Kasper <e.kasper@proxmox.com>
Tue, 1 Sep 2015 11:35:05 +0000 (13:35 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Thu, 3 Sep 2015 10:46:54 +0000 (12:46 +0200)
src/pct

diff --git a/src/pct b/src/pct
index 45f5d1c3dea69795432d99a1e308ff2798a8cd06..9c78d5a388fda70c7bbfd8df5e4e5226f1363b00 100755 (executable)
--- a/src/pct
+++ b/src/pct
@@ -159,7 +159,7 @@ __END__
 
 =head1 NAME
 
-pct - Tool to manage Linux Containers on Proxmox VE
+pct - Tool to manage Linux Containers (LXC) on Proxmox VE
 
 =head1 SYNOPSIS
 
@@ -167,6 +167,52 @@ pct - Tool to manage Linux Containers on Proxmox VE
 
 =head1 DESCRIPTION
 
-Tool to manage linux containers.
+pct is a tool to manages Linux Containers (LXC). You can create
+and destroy containers, and control execution
+(start/stop/suspend/resume). Besides that, you can use pct to set
+parameters in the associated config file, like network configuration or
+memory.
+
+=head1 EXAMPLES
+
+Create a container based on a Debian template
+(provided you downloaded the template via the webgui before)
+
+pct create 100 /var/lib/vz/template/cache/debian-8.0-standard_8.0-1_amd64.tar.gz
+
+Start a container
+
+pct start 100
+
+Start a login session via getty
+
+pct console 100
+
+Enter the lxc namespace and run a shell as root user
+
+pct enter 100
+
+Display the configuration
+
+pct config 100
+
+Add a network interface called eth0, bridged to the host bridge vmbr0,
+set the address and gateway, while it's running
+
+pct set 100 -net0 name=eth0,bridge=vmbr0,ip=192.168.15.147/24,gw=192.168.15.1
+
+Reduce the memory of the container to 512MB
+
+pct set -memory 512 100
+
+=head1 FILES
+
+/etc/pve/lxc/<vmid>.conf
+
+Configuration file for the container <vmid>
+
+=head1 SEE ALSO
+
+L<B<qm(1)>>, L<B<pvesh(1)>>
 
 =include pve_copyright