From ef33f672a32a2b044e308d1b4d529a24c422dbdf Mon Sep 17 00:00:00 2001 From: Matt McEuen Date: Wed, 25 Mar 2020 16:03:56 -0500 Subject: [PATCH] Fix airshipctl image publish Resolve the following error when logging into the remote docker registry. Failed to import the required Python library (Docker SDK for Python: docker (Python >= 2.7) or docker-py (Python 2.6)) on ubuntu-bionic-rax-dfw-0015461365's Python /usr/bin/python3. Please read module documentation and install in the appropriate location, for example via `pip install docker` or `pip install docker-py` (Python 2.6). The error was: No module named 'docker' Change-Id: I0df7e58aae886dfa3901815a60853e47c98b5e90 --- roles/airshipctl-publish-images/tasks/main.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/roles/airshipctl-publish-images/tasks/main.yaml b/roles/airshipctl-publish-images/tasks/main.yaml index 9f1f1cee1..7a0321af4 100644 --- a/roles/airshipctl-publish-images/tasks/main.yaml +++ b/roles/airshipctl-publish-images/tasks/main.yaml @@ -14,6 +14,8 @@ apt: pkg: - python-docker + - python3-docker + - python-requests - python3-requests state: present when: ansible_distribution == 'Debian' or ansible_distribution == 'Ubuntu'