pipework docker cannot use the ip netns command solution

  • 2020-05-17 07:01:29
  • OfStack

When assigning IP to docker containers via pipework, the system reported the following error:

Object "netns" is unknown, try "ip help".

This error is due to the system version temporarily does not support namespaces, you can update the kernel or iproute to get support for namespaces. The update method is as follows:

Method 1:

Add yum source:


[cce]
cat /etc/yum.repos.d/rdo.repo

[openstack-kilo]
name=OpenStack Kilo Repository
baseurl=https://repos.fedorapeople.org/repos/openstack/EOL/openstack-icehouse/epel-6/
skip_if_unavailable=0
enabled=1
gpgcheck=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-RDO-kilo

Update iproute next:

# yum update iproute -y
[/cce]

Method 2: update the kernel

Update the kernel yourself, no more details.

Thank you for reading, I hope to help you, thank you for your support of this site!


Related articles: