Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docker Tag Error: repository/tag: invalid reference format #118

Open
herwonowr opened this issue Dec 20, 2023 · 0 comments
Open

Docker Tag Error: repository/tag: invalid reference format #118

herwonowr opened this issue Dec 20, 2023 · 0 comments

Comments

@herwonowr
Copy link

Hello, I'm currently experimenting with Devtron and utilizing Goharbor as a private Docker repository. However, I encountered an issue where the following line triggers an error: repository/tag: invalid reference format. This occurs because the line generates an invalid Docker tag containing a / character.

Example log: 2023/12/20 15:38:38 -----> docker tag myharbor.domain.com/library/test-node:latest /myharbor.domain.com/library/test-node:042d04e7-1-17

Example error: Error parsing reference: "/myharbor.domain.com/library/test-node:042d04e7-1-17" is not a valid repository/tag: invalid reference format

The error is caused by the following line of code:
https://github.com/devtron-labs/ci-runner/blob/560e68675d2722d58ab2f63edaaf8a890ff04c1b/helper/DockerHelper.go#L541C31-L541C31

The specific issue arises from the use of the /

u.Path = path.Join(u.Path, "/", ciRequest.DockerRepository)
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

No branches or pull requests

1 participant