mirror of https://github.com/docker/compose.git
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 docker import Client
|
||||
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')
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue