Open main menu

OpenVZ Virtuozzo Containers Wiki β

Changes

Docker inside CT

246 bytes added, 22:47, 11 February 2015
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
docker -d -s vfs
== Example usage ==