Skip to content

Commit ac4b3a2

Browse files
committed
use docker.constants.DEFAULT_UNIX_SOCKET
Signed-off-by: Jonathan Dowland <jdowland@redhat.com>
1 parent 36f8f8b commit ac4b3a2

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

steps/container.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
# A future version of Cekit will expose this to us, for now we hard-code
3636
DOCKER_API_VERSION = "1.35"
3737

38-
base_url = os.environ.get("DOCKER_HOST", 'unix:///var/run/docker.sock')
38+
base_url = os.environ.get("DOCKER_HOST", docker.constants.DEFAULT_UNIX_SOCKET)
3939
d = docker.APIClient(version=DOCKER_API_VERSION, base_url=base_url)
4040

4141

steps/image_steps.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
# A future version of Cekit will expose this to us, for now we hard-code
88
DOCKER_API_VERSION = "1.35"
99

10-
base_url = os.environ.get("DOCKER_HOST", 'unix:///var/run/docker.sock')
10+
base_url = os.environ.get("DOCKER_HOST", docker.constants.DEFAULT_UNIX_SOCKET)
1111
DOCKER_CLIENT = docker.APIClient(version=DOCKER_API_VERSION, base_url=base_url)
1212

1313
@then(u'the image should contain label {label}')

0 commit comments

Comments
 (0)