Skip to content

bug: parse docker images with a registry port - #670

Open
Amadeus-22 wants to merge 1 commit into
QuantConnect:masterfrom
Amadeus-22:bug-669-docker-image-registry-port
Open

Amadeus-22 wants to merge 1 commit into
QuantConnect:masterfrom
Amadeus-22:bug-669-docker-image-registry-port

Conversation

@Amadeus-22

Copy link
Copy Markdown

Closes #669.

  • DockerImage.parse split the image on every colon. With a registry that has a port, localhost:5000/lean became name localhost and tag 5000/lean, and localhost:5000/lean:latest raised ValueError: too many values to unpack. This affects --image and the engine-image / research-image config values.
  • Now only the part after the last colon is the tag, and only when it has no / in it. Existing inputs parse as before.
  • Added three registry cases to tests/models/test_docker.py. pytest tests/models/test_docker.py passes (10 tests) and python static_analysis.py is clean.

🤖 Generated with Claude Code

DockerImage.parse split on every colon, so localhost:5000/lean was read as
name 'localhost' with tag '5000/lean' and localhost:5000/lean:latest raised
ValueError. Only the part after the last colon is a tag, and only when it
does not contain a slash.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Docker image with a registry port cannot be parsed

1 participant