Move to the latest docker client over docker-py python client.
If you are running an old docker-engine, just update with:
sudo service docker stop && sudo apt-get -y install docker-engine
And you should be good to go.
If you don't run the prerequisites, this change should be backward compatible with older docker clients installations.
Change-Id: Ieaa08586df1b29fc5b0fc72710736b17ae9a5f65
diff --git a/src/test/utils/CordContainer.py b/src/test/utils/CordContainer.py
index 841fcd0..ba62ef7 100644
--- a/src/test/utils/CordContainer.py
+++ b/src/test/utils/CordContainer.py
@@ -23,7 +23,10 @@
from pyroute2.netlink import NetlinkError
from itertools import chain
from nsenter import Namespace
-from docker import Client
+try:
+ from docker import APIClient as Client
+except:
+ from docker import Client
from docker import utils as dockerutils
import shutil
from OnosCtrl import OnosCtrl