Changes

Jump to: navigation, search

Docker inside CT vz7

454 bytes added, 13:00, 30 September 2016
Container tuning
Since Virtuozzo 7 kernel vzkernel-3.10.0-327.18.2.vz7.14.7 it is possible to run Docker inside containers. This article describes how '''Please be aware that this feature is experimental and is not supported in production! We plan to make it production in the upcoming updates.''' <br>'''This page is applicable for Virtuozzo 7''' (for OpenVZ Virtuozzo 6 see [[Docker inside CT | '''here''']]).
== Prerequisites ==
* Kernel modules '''veth''' and '''overlay''' loaded on host
To enable '''veth''' and '''overlay''' modules please run: modprobe veth modprobe overlay  '''Note: ''' if you use kernel >= 3.10.0-327.18.2.vz7.14.25<= kernel <= 3.10.0-327.28.2.vz7.17.5, you need to allow using "overlayfs" inside a Virtuozzo Container:
echo 1 > /proc/sys/fs/experimental_fs_enable
This was a temporary step, if you use kernel >= 3.10.0-327.28.2.vz7.17.6, overlayfs can be used inside a Container by default.
 
== Limitations ==
 
* Only '''overlay''' and '''vfs''' Docker graph drivers are currently supported. Recommended driver is '''overlay'''. To enable '''overlayfs''' Storage Driver for docker engine inside CT please read here https://docs.docker.com/engine/userguide/storagedriver/selectadriver/
* [[Checkpointing and live migration]] of a container with Docker containers inside is not supported yet (to be done)
== Container tuning ==
* Turn on '''bridge''' feature to allow docker creating bridged network:
vzctl set $veid --features bridge:on --save
* Setup Container veth-based network (Container must be '''veth'''-based, not '''venet'''-based):
vzctl set $veid --netif_add eth0 --save
* Allow all iptables modules to be used in containers:
vzctl prlctl set $veid --netfilter =full --save
== Docker install ==
== Limitations == * Only '''overlay''' and '''vfs''' To install docker inside container please use Docker graph drivers are currently supportedInstallation Guide for your OS* [[Checkpointing and live migration]] of a container with Docker containers inside is not supported yet (to be done)https://docs.docker.com/v1.11/engine/installation/
[[Category:HOWTO]]
[[Category: TRD]]
Anonymous user

Navigation menu