issue #164: utility to print Docker hostname for use from shell scripts.
parent
7fd88868a6
commit
35fdd97f9a
@ -0,0 +1,12 @@
|
|||||||
|
#!/usr/bin/env python
|
||||||
|
|
||||||
|
"""
|
||||||
|
For use by the Travis scripts, just print out the hostname of the Docker
|
||||||
|
daemon from the environment.
|
||||||
|
"""
|
||||||
|
|
||||||
|
import docker
|
||||||
|
import testlib
|
||||||
|
|
||||||
|
docker = docker.from_env(version='auto')
|
||||||
|
print testlib.get_docker_host(docker)
|
Loading…
Reference in New Issue