From 8e9b59b6dc191adfeb8eb4f3050bb6642e9278b3 Mon Sep 17 00:00:00 2001 From: peusterm Date: Fri, 20 Dec 2019 08:47:20 +0100 Subject: [PATCH] Fix: Force Python3 in vim-emu container Change-Id: I5ee780bc71fbbc5482e8a5db0c23f27b1bd95f2f Signed-off-by: peusterm --- Dockerfile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Dockerfile b/Dockerfile index 97b2aad..81aa587 100644 --- a/Dockerfile +++ b/Dockerfile @@ -41,6 +41,11 @@ RUN python3 setup.py develop RUN pip3 install "tinyrpc==1.0.3" RUN pip3 install wheel --upgrade +# Force python3 +RUN mv /usr/bin/python /usr/bin/python2 && \ + ln -s /usr/bin/python3 /usr/bin/python && \ + ln -s /usr/bin/pip3 /usr/bin/pip + # Important: This entrypoint is required to start the OVS service ENTRYPOINT ["/vim-emu/utils/docker/entrypoint.sh"] CMD ["python3", "examples/default_single_dc_topology.py"] -- 2.25.1