mirror of
https://github.com/docker/compose.git
synced 2025-07-23 05:34:36 +02:00
Add envvar to set Docker URL in tests
This commit is contained in:
parent
e2e5172a59
commit
dc4f90f3ed
@ -1,9 +1,13 @@
|
|||||||
from unittest import TestCase
|
from unittest import TestCase
|
||||||
from docker import Client
|
from docker import Client
|
||||||
from plum import Service
|
from plum import Service
|
||||||
|
import os
|
||||||
|
|
||||||
|
|
||||||
client = Client('http://127.0.0.1:4243')
|
if os.environ.get('DOCKER_URL'):
|
||||||
|
client = Client(os.environ['DOCKER_URL'])
|
||||||
|
else:
|
||||||
|
client = Client()
|
||||||
client.pull('ubuntu')
|
client.pull('ubuntu')
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user