Skip to content

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

Merged
jhonabreul merged 1 commit into
QuantConnect:masterfrom
Amadeus-22:bug-669-docker-image-registry-port
Oct 14, 2026
Merged

jhonabreul merged 1 commit into
QuantConnect:masterfrom
Amadeus-22:bug-669-docker-image-registry-port

Conversation

@Amadeus-22

Copy link
Copy Markdown
Contributor

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>

@jhonabreul jhonabreul left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for your contribution!

@jhonabreul
jhonabreul merged commit 8381607 into QuantConnect:master Oct 14, 2026
38 checks passed
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

2 participants