After Docker upgrade to the version 1.8 or 1.9, it is not possible to start it in a Virtuozzo container, based on Virtuozzo 6 update 10:
[root@ct ~]# docker run -d -p 80 test/hello-world WARNING: Your kernel does not support memory swappiness capabilities, memory swappiness discarded. Error response from daemon: Cannot start container ID: unable to set hairpin mode on veth101 via netlink: address family not supported by protocol
Or like this:
[root@ct ~]# docker run hello-world Error response from daemon: Cannot start container b58aad390858ac66035b3cfb200daa696d4f63ec9563a11059c38c4475f3a328:  System error: mkdir /sys/fs/cgroup/system.slice: read-only file system
Docker 1.8 and 1.9 are not supported in Virtuozzo 6 update 10.
Support of new versions is planned to be included in future versions of Virtuozzo 6. Corresponding feature requests are PSBM-39725 and PSBM-39836.
As a workaround, it is possible to downgrade Docker to the supported version 1.7.1.
Assuming you have Docker application template installed, the following actions must be done in order to downgrade the package:
remove Docker from inside the containers:
[root@ct ~]# yum -y remove docker
install Docker 1.7.1
[root@ct ~]# yum -y install docker-1.7.1
In case if Docker 1.7.1 is not available in distribution's repository, it is possible to install it from the official Docker repository:
[root@ct ~]# cat >/etc/yum.repos.d/docker.repo <<EOF [dockerrepo] name=Docker Repository baseurl=https://yum.dockerproject.org/repo/main/centos/7 enabled=1 gpgcheck=1 gpgkey=https://yum.dockerproject.org/gpg EOF [root@ct ~]# yum -y install docker-engine-1.7.1