Skip to content
Snippets Groups Projects
Commit 8b89c9943c1f authored by Florent Aide's avatar Florent Aide
Browse files

Use latest docker client with older API calls (client.APIClient instead of new client.DockerClient)

parent dab6c1878c2b
No related branches found
No related tags found
No related merge requests found
......@@ -207,7 +207,7 @@
c.get('odoo_scripts', 'postgresql_version')) or '9.6'
logging.debug("Docker image: %s", image)
# detect if docker image already exists
docker_client = docker.Client(base_url='unix://var/run/docker.sock')
docker_client = docker.APIClient(base_url='unix://var/run/docker.sock')
image_list = docker_client.images(name=image, quiet=True)
if not image_list:
logging.warn("Image %s does not exist", image)
......
docker
docker>3.0
requests
psycopg2>=2.7 --no-binary psycopg2
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment