Open main menu

OpenVZ Virtuozzo Containers Wiki β

Changes

Docker inside CT

51 bytes added, 23:01, 24 April 2015
Container tuning: +diskspace
* Kernel modules '''tun''', '''veth''' and '''bridge''' loaded on host (not required since vzctl 4.9 as it loads it automatically)
== Container creation and tuning ==
* Create CentOS 7 containerwith enough disk space: vzctl create $veid --ostemplate centos-7-x86_64--diskspace 20G
* Turn on bridge feature to allow docker creating bridged network:
vzctl set $veid --features bridge:on --save
: <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