Skip to content

Commit 8444a28

Browse files
committed
Explicitly pull registry image before trying to run
1 parent 82e049f commit 8444a28

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tests/registry/test_registry.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,11 @@
1212
@pytest.fixture
1313
def registry():
1414
port = get_free_port()
15+
# Explicitly pull the image first so it runs on time
16+
registry_image = "registry:3.0.0-rc.3"
17+
subprocess.check_call(["docker", "pull", registry_image])
1518
cmd = [
16-
"docker", "run", "-it", "-p", f"{port}:5000", "registry:3.0.0-rc.3"
19+
"docker", "run", "-it", "-p", f"{port}:5000", registry_image
1720
]
1821
proc = subprocess.Popen(cmd)
1922
health_url = f'http://localhost:{port}/v2'

0 commit comments

Comments
 (0)