6,534
edits
Changes
more fixes
* Setup Container veth-based network:
vzctl set $veid --netif_add eth0 --save
* Allow all iptables modules being to be used in containers:
vzctl set $veid --netfilter full --save
* Configure custom cgroups in systemd:
: <small>''systemd reads /proc/cgroups and mounts all cgroups enabled there, though it doesn't know there's a restriction that only freezer,devices and cpuacct,cpu,cpuset can be mounted in container, but not freezer, cpu etc. separately''</small>
vzctl mount $veid
echo "JoinControllers=cpu,cpuacct,cpuset,freezer,devices" >> /vz/root/$veid/etc/systemd/system.conf
* Start the container:
vzctl start $veid
yum -y install docker-io
* Start docker daemon
== Example usage ==