Article ID: 127636, created on Dec 1, 2015, last review on Jan 8, 2016

  • Applies to:
  • Virtuozzo 6.0

Symptoms

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: [8]
System error: mkdir /sys/fs/cgroup/system.slice: read-only file system

Cause

Docker 1.8 and 1.9 are not supported in Virtuozzo 6 update 10.

Resolution

Support of new versions is planned to be included in future versions of Virtuozzo 6. Corresponding feature requests are PSBM-39725 and PSBM-39836.

Workaround

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
    

Search Words

docker

unable to set hairpin mode

docker version

address family not supported by protocol

Error response from daemon

Your kernel does not support memory swappiness capabilities, memory swappiness discarded.

c62e8726973f80975db0531f1ed5c6a2 2897d76d56d2010f4e3a28f864d69223 0dd5b9380c7d4884d77587f3eb0fa8ef

Email subscription for changes to this article
Save as PDF