Difference between revisions of "Docker inside CT vz7"
(Created page with "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. (This page is applicable for Virtuozzo 7...") |
m |
||
Line 1: | Line 1: | ||
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. | 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. | ||
− | + | <br>'''This page is applicable for Virtuozzo 7.''' | |
== Prerequisites == | == Prerequisites == | ||
Line 12: | Line 12: | ||
== Container tuning == | == Container tuning == | ||
− | * Turn on bridge feature to allow docker creating bridged network: | + | * Turn on '''bridge''' feature to allow docker creating bridged network: |
vzctl set $veid --features bridge:on --save | vzctl set $veid --features bridge:on --save | ||
* Setup Container veth-based network (Container must be '''veth'''-based, not '''venet'''-based): | * Setup Container veth-based network (Container must be '''veth'''-based, not '''venet'''-based): |
Revision as of 16:36, 18 July 2016
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.
This page is applicable for Virtuozzo 7.
Prerequisites
- Kernel 3.10.0-327.18.2.vz7.14.7 or later version
- Kernel modules veth and overlay loaded on host
Note: if you use kernel >= 3.10.0-327.18.2.vz7.14.25, you need to allow using "overlayfs" inside a Virtuozzo Container:
echo 1 > /proc/sys/fs/experimental_fs_enable
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 set $veid --netfilter full --save
Limitations
- Only overlay and vfs Docker graph drivers are currently supported
- Checkpointing and live migration of a container with Docker containers inside is not supported yet (to be done)
See also
- Docker inside CT page for running Docker Containers inside OpenVZ 6 Containers