Skip to content

Commit

Permalink
Explicitly pull registry image before trying to run
Browse files Browse the repository at this point in the history
  • Loading branch information
yuvipanda committed Feb 28, 2025
1 parent 82e049f commit 8444a28
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/registry/test_registry.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,11 @@
@pytest.fixture
def registry():
port = get_free_port()
# Explicitly pull the image first so it runs on time
registry_image = "registry:3.0.0-rc.3"
subprocess.check_call(["docker", "pull", registry_image])
cmd = [
"docker", "run", "-it", "-p", f"{port}:5000", "registry:3.0.0-rc.3"
"docker", "run", "-it", "-p", f"{port}:5000", registry_image
]
proc = subprocess.Popen(cmd)
health_url = f'http://localhost:{port}/v2'
Expand Down

0 comments on commit 8444a28

Please sign in to comment.