]> git.proxmox.com Git - pve-docs.git/commitdiff
pct.adoc: improve document structure
authorDietmar Maurer <dietmar@proxmox.com>
Sat, 7 May 2016 06:52:50 +0000 (08:52 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Sat, 7 May 2016 06:52:50 +0000 (08:52 +0200)
pct.adoc

index 07f99a4d5d2e4d49669b65e10e281b228e7abe3a..2d52ad2b5fa6d92385c4e4ad712a8f1b603eeb47 100644 (file)
--- a/pct.adoc
+++ b/pct.adoc
@@ -324,56 +324,6 @@ mount local directories using bind mounts. That way you can access
 local storage inside containers with zero overhead. Such bind mounts
 also provide an easy way to share data between different containers.
 
 local storage inside containers with zero overhead. Such bind mounts
 also provide an easy way to share data between different containers.
 
-
-Managing Containers with 'pct'
-------------------------------
-
-'pct' is the tool to manage Linux Containers on {pve}. You can create
-and destroy containers, and control execution (start, stop, migrate,
-...). You can use pct to set parameters in the associated config file,
-like network configuration or memory limits.
-
-CLI Usage Examples
-------------------
-
-Create a container based on a Debian template (provided you have
-already downloaded the template via the webgui)
-
- pct create 100 /var/lib/vz/template/cache/debian-8.0-standard_8.0-1_amd64.tar.gz
-
-Start container 100
-
- 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
-
-Files
-------
-
-'/etc/pve/lxc/<CTID>.conf'::
-
-Configuration file for the container '<CTID>'.
-
-
 Container Mountpoints
 ---------------------
 
 Container Mountpoints
 ---------------------
 
@@ -408,7 +358,7 @@ establish the FUSE mount on the Proxmox host and use a bind
 mountpoint to make it accessible inside the container.
 
 Using quotas inside containers
 mountpoint to make it accessible inside the container.
 
 Using quotas inside containers
-------------------------------
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 
 Quotas allow to set limits inside a container for the amount of disk space
 that each user can use.
 
 Quotas allow to set limits inside a container for the amount of disk space
 that each user can use.
@@ -431,12 +381,68 @@ NOTE: You need to run the above commands for every mountpoint by passing
 the mountpoint's path instead of just `/`.
 
 Using ACLs inside containers
 the mountpoint's path instead of just `/`.
 
 Using ACLs inside containers
-----------------------------
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 
 The standard Posix Access Control Lists are also available inside containers. 
 ACLs allow you to set more detailed file ownership than the traditional user/
 group/others model.
 
 
 The standard Posix Access Control Lists are also available inside containers. 
 ACLs allow you to set more detailed file ownership than the traditional user/
 group/others model.
 
+
+Container Network
+-----------------
+
+TODO
+
+
+Managing Containers with 'pct'
+------------------------------
+
+'pct' is the tool to manage Linux Containers on {pve}. You can create
+and destroy containers, and control execution (start, stop, migrate,
+...). You can use pct to set parameters in the associated config file,
+like network configuration or memory limits.
+
+CLI Usage Examples
+~~~~~~~~~~~~~~~~~~
+
+Create a container based on a Debian template (provided you have
+already downloaded the template via the webgui)
+
+ pct create 100 /var/lib/vz/template/cache/debian-8.0-standard_8.0-1_amd64.tar.gz
+
+Start container 100
+
+ 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
+
+Files
+------
+
+'/etc/pve/lxc/<CTID>.conf'::
+
+Configuration file for the container '<CTID>'.
+
+
 Container Advantages
 --------------------
 
 Container Advantages
 --------------------